sadanand48 commented on code in PR #5541:
URL: https://github.com/apache/ozone/pull/5541#discussion_r1396791380
##########
hadoop-hdds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/container/InfoSubcommand.java:
##########
@@ -109,6 +111,16 @@ public void execute(ScmClient scmClient) throws
IOException {
} else {
LOG.info("Pipeline id: {}", container.getPipeline().getId().getId());
}
+ LOG.info("Write PipelineId: {}",
+ container.getContainerInfo().getPipelineID().getId());
+ try {
+ String pipelineState = scmClient.getPipeline(
+ container.getContainerInfo().getPipelineID().getProtobuf())
+ .getPipelineState().toString();
+ LOG.info("Write Pipeline State: {}", pipelineState);
+ } catch (IOException ioe) {
Review Comment:
Check for PipelineNotFoundException specifically
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]