GlenGeng edited a comment on pull request #2295: URL: https://github.com/apache/ozone/pull/2295#issuecomment-852861653
`PipelineManager.closePipeline()` will be called from `DeadNodeHandler`, `StaleNodeHandler`, `PipelineActionHandler` from `EventHandler` and `PipelineManagerV2Impl.scrubPipeline()` from `BackgroundPipelineCreator`. `PipelineManager.closePipeline()` will call `stateManager.updatePipelineState()` and `stateManager.removePipeline()` sequentially. Thread 1 and thread 2 calling `closePipeline` simultaneously is the root cause of the contention, and the consequence is PipelineNotFoundException. I haven't figured out a possible fix, since synchronizing on the pipeline object cannot solve the remove case. -- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
