You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/10/09 05:06:07 UTC

[GitHub] [shardingsphere-elasticjob] sparrowzoo commented on issue #1549: when elastic job instance is suspended(can't communicate with leader,but not dead), even if "monitorExecution" is true, it cannot guarantee that the same sharding will only run on one instance at the same time

sparrowzoo commented on issue #1549:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1549#issuecomment-705970133


   then context is : 
   t1. when instanct 'A' can't  community with leader,but not dead. this task is continue running.... `may be continue long time`
   t2. trigger resharding flag
   t3. resharding while assign the sharding of instant 'A' to another instance)
   ```
   //zk ephemeral node
   private void waitingOtherShardingItemCompleted() {
   while (executionService.hasRunningItems()) {
   log.debug("Job '{}' sleep short time until other job completed.", jobName);
   BlockUtils.waitingShortTime();
   }
   }
   ```
   t4.  job start running
   t5.  sharding of instant 'A' is repeat running 


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