You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/06/02 05:43:37 UTC

[GitHub] [dolphinscheduler] ruanwenjun edited a comment on issue #5578: [Bug][Master] ServerNodeManager WorkerGroupListener capture data change and get data failed

ruanwenjun edited a comment on issue #5578:
URL: https://github.com/apache/dolphinscheduler/issues/5578#issuecomment-852743216


   This does happen, if the two master crash at the same time(If there is only one master, it's easier to reproduce).
   Because currently we have multiple listeners that will listen the node changes.
   https://github.com/apache/dolphinscheduler/blob/cc9e5d5d34fcf2279b267cca7df37a9e80eeba07/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/zk/ZKMasterClient.java#L217-L228
   If this listener exeucte first, it will remove the node, and will cause Master stop, and execute QuartzExecutors.shutdown method to close the datasource.
   
   The main reason is that the listener has no order.
   
   Here is a related issue #5491 and related pr #5497


-- 
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