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 2022/11/19 13:48:04 UTC

[GitHub] [shardingsphere] zhaojinchao95 opened a new issue, #22278: Maybe ZooKeeper connection session timeout not resetting ephemeral node value

zhaojinchao95 opened a new issue, #22278:
URL: https://github.com/apache/shardingsphere/issues/22278

   `master` https://github.com/apache/shardingsphere/commit/5acf119d5d0590e64fe8652cfb008a477b43d60b
   
   <img width="1102" alt="image" src="https://user-images.githubusercontent.com/33742097/202853712-12d02b6c-4e93-46ae-b5e7-2676d65b3f5d.png">


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] zhaojinchao95 commented on issue #22278: Maybe ZooKeeper connection session timeout not resetting ephemeral node value

Posted by GitBox <gi...@apache.org>.
zhaojinchao95 commented on issue #22278:
URL: https://github.com/apache/shardingsphere/issues/22278#issuecomment-1320889716

   ```
    private boolean reRegister(final CuratorFramework client) {
           try {
               if (client.getZookeeperClient().blockUntilConnectedOrTimedOut()) {
                   if (isNeedGenerateWorkerId()) {
                       instanceContext.generateWorkerId(new Properties());
                   }
                   repository.persistEphemeral(ComputeNode.getOnlineInstanceNodePath(instanceContext.getInstance().getCurrentInstanceId(),
                           instanceContext.getInstance().getMetaData().getType()), instanceContext.getInstance().getMetaData().getAttributes());
                   return true;
               }
               sleepInterval();
               return false;
           } catch (final InterruptedException ex) {
               ZookeeperExceptionHandler.handleException(ex);
               return true;
           }
       }
   ```


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] tuichenchuxin closed issue #22278: Maybe ZooKeeper connection session timeout not resetting ephemeral node value

Posted by GitBox <gi...@apache.org>.
tuichenchuxin closed issue #22278: Maybe ZooKeeper connection session timeout not resetting ephemeral node value
URL: https://github.com/apache/shardingsphere/issues/22278


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org