You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/08/29 06:25:54 UTC

[GitHub] [dubbo] caoyuan1 opened a new issue #8631: ZookeeperDynamicConfiguration#ZookeeperDynamicConfiguration(URL url, ZookeeperTransporter zookeeperTransporter)

caoyuan1 opened a new issue #8631:
URL: https://github.com/apache/dubbo/issues/8631


   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   - [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.2.0.1
   * Operating System version: Windows 10
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
       ZookeeperDynamicConfiguration(URL url, ZookeeperTransporter zookeeperTransporter) {
           super(url);
           this.url = url;
           this.rootPath = this.getRootPath(url);
           this.cacheListener = new CacheListener(this.rootPath);
           String threadName = this.getClass().getSimpleName();
           this.executor = new ThreadPoolExecutor(1, 1, THREAD_KEEP_ALIVE_TIME, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(10000), new NamedThreadFactory(threadName, true), new AbortPolicyWithReport(threadName, url));
           this.zkClient = zookeeperTransporter.connect(url);
           **boolean isConnected = this.zkClient.isConnected();**
           if (!isConnected) {
               throw new IllegalStateException("Failed to connect with zookeeper, pls check if url " + url + " is correct.");
           }
       }
   
   虽然粗体部分在启动的时候返回false,但是zkClient确实是连接上了。这个抛出异常导致应用启动的时候多做判断。
   
   
   


-- 
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@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] horizonzy commented on issue #8631: ZookeeperDynamicConfiguration#ZookeeperDynamicConfiguration(URL url, ZookeeperTransporter zookeeperTransporter)

Posted by GitBox <gi...@apache.org>.
horizonzy commented on issue #8631:
URL: https://github.com/apache/dubbo/issues/8631#issuecomment-909846321


   It's maybe curator's problem, which version of curator do you use?


-- 
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@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM commented on issue #8631: ZookeeperDynamicConfiguration#ZookeeperDynamicConfiguration(URL url, ZookeeperTransporter zookeeperTransporter)

Posted by GitBox <gi...@apache.org>.
CrazyHZM commented on issue #8631:
URL: https://github.com/apache/dubbo/issues/8631#issuecomment-939304248


   No feedback for a long time, please close the issue temporarily. If there is still a problem, you can reopen it.


-- 
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@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] horizonzy commented on issue #8631: ZookeeperDynamicConfiguration#ZookeeperDynamicConfiguration(URL url, ZookeeperTransporter zookeeperTransporter)

Posted by GitBox <gi...@apache.org>.
horizonzy commented on issue #8631:
URL: https://github.com/apache/dubbo/issues/8631#issuecomment-909846321


   It's maybe curator's problem, which version of curator do you use?


-- 
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@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM closed issue #8631: ZookeeperDynamicConfiguration#ZookeeperDynamicConfiguration(URL url, ZookeeperTransporter zookeeperTransporter)

Posted by GitBox <gi...@apache.org>.
CrazyHZM closed issue #8631:
URL: https://github.com/apache/dubbo/issues/8631


   


-- 
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@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org