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

   ### Which version of ShardingSphere did you use?
   
   `master` branch 
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   `ShardingSphere-Proxy`
   
   ### 
   
   ```
     private boolean reRegister(final CuratorFramework client) {
           try {
               if (client.getZookeeperClient().blockUntilConnectedOrTimedOut()) 
{
                   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) {
               CuratorZookeeperExceptionHandler.handleException(ex);
               return true;
           }
       }
   ```
   
   ### Step
   
   Proxy start up successful.
   
   ```
   CREATE DATABASE ss;
   ADD RESOURCE ds_nop (
       HOST=127.0.0.1,
       PORT=3306,
       DB=ds_nop,
       USER=root,
       PASSWORD=123456
   );
   ```
   
   <img width="1128" alt="image" 
src="https://user-images.githubusercontent.com/33742097/184496371-b95371be-960b-47bb-b8c7-1cf3492dd3c2.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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to