You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/06/02 09:36:03 UTC

[GitHub] [ozone] GlenGeng edited a comment on pull request #2295: HDDS-5284. [SCM-HA] SCM start failed with PipelineNotFoundException.

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org