When a node goes stale the pipelines in that node have to be closed and removed from PipelineManager. Currently, the pipeline is only closed and left in PipelineManager.
Root Cause Analysis
Since the Scheduler in SCMPipelineManager that used to destroyPipeline is removed,
meanwhile the PipelineManagerV2Impl::scrubPipeline only handles and remove RATIS THREE pipeline,
RATIS ONE Pipeline is closed but not removed when a datanode goes stale. The solution is let scrubPipeline handle all kinds of pipelines.