Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public void openPipeline(PipelineID pipelineId)
*/
protected void removePipeline(Pipeline pipeline)
throws IOException {
pipelineFactory.close(pipeline.getType(), pipeline);
// Removing the pipeline from SCM.
HddsProtos.PipelineID pipelineID = pipeline.getId().getProtobuf();
acquireWriteLock();
try {
Expand All @@ -457,6 +457,8 @@ protected void removePipeline(Pipeline pipeline)
} finally {
releaseWriteLock();
}
// Firing pipeline close command to datanode.
pipelineFactory.close(pipeline.getType(), pipeline);
LOG.info("Pipeline {} removed.", pipeline);
metrics.incNumPipelineDestroyed();
}
Expand Down