sokui commented on code in PR #3186:
URL: https://github.com/apache/ozone/pull/3186#discussion_r887292822
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/PipelineManagerImpl.java:
##########
@@ -419,6 +420,45 @@ public void closePipeline(Pipeline pipeline, boolean
onTimeout)
}
}
+ /** close the pipelines whose nodes' IPs are stale.
+ *
+ * @param datanodeDetails new datanodeDetails
+ */
+ @Override
+ public void closeStalePipelines(DatanodeDetails datanodeDetails) {
+ List<Pipeline> pipelinesWithStaleIpOrHostname =
+ getStalePipelines(datanodeDetails);
+ if (pipelinesWithStaleIpOrHostname.isEmpty()) {
+ LOG.info("No stale pipelines");
+ return;
+ }
+ LOG.info("Pipelines with stale IP or Host name: {}",
+ pipelinesWithStaleIpOrHostname);
Review Comment:
sure
--
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]