sodonnel commented on code in PR #9024:
URL: https://github.com/apache/ozone/pull/9024#discussion_r2349151532
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/ClosePipelineCommandHandler.java:
##########
@@ -90,6 +90,15 @@ public ClosePipelineCommandHandler(
this.pipelinesInProgress = ConcurrentHashMap.newKeySet();
}
+ /**
+ * Returns true if pipeline is in progress, else false.
+ *
+ * @return boolean
+ */
+ public boolean isPipelineInProgress(UUID pipelineID) {
Review Comment:
This might be better named as `isPipelineCloseInProgress`? I guess it is
within the ClosePipelineHandler, and it mirrors the name of the underlying map
so "close" is somewhat obvious, but it might read better in other places with
the suggested change.
Also the javadoc should probably also say `Returns true if pipeline close is
in progress`.
--
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]