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/07/15 07:33:26 UTC

[GitHub] [dubbo-go] Da-Hong opened a new issue #1322: zk config_center can't listen configurators well

Da-Hong opened a new issue #1322:
URL: https://github.com/apache/dubbo-go/issues/1322


   **What happened**:
   error log:
   zookeeper/listener.go:300       Send remoting event EventTypeAdd fail, path {/dubbo/config/dubbo/xxx.configurators}
   
   then lose listener with /dubbo/config/dubbo/xxx.configurators
   
   when create /dubbo/config/dubbo/temp will  trigger the /dubbo/config/dubbo listener then listen /dubbo/config/dubbo/xxx.configurators success
   
   I found the reason:
   GetDynamicConfiguration first async listen zk node when DataChange occure, the CacheListener may not init.
   Becasue the CacheListener init by subscribe function after.
   
   Maybe short ttl time can help, but not work perfect.
   
   **What you expected to happen**:
   listen config file 'xxx.configurators' success
   
   **How to reproduce it (as minimally and precisely as possible)**:
   create /dubbo/config/dubbo/xxx.configurators at zk and start client with config_center
   
   **Anything else we need to know?**:
   version 1.5.6 use zookeeper with config_center meta_center registry


-- 
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-go] alchemy-lee commented on issue #1322: zk config_center can't listen configurators well

Posted by GitBox <gi...@apache.org>.
alchemy-lee commented on issue #1322:
URL: https://github.com/apache/dubbo-go/issues/1322#issuecomment-883292901


   The "xxx" should be replaced by your application name. For example, "/dubbo/config/dubbo/user-info-client.configurators"


-- 
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-go] AlexStocks commented on issue #1322: zk config_center can't listen configurators well

Posted by GitBox <gi...@apache.org>.
AlexStocks commented on issue #1322:
URL: https://github.com/apache/dubbo-go/issues/1322#issuecomment-927094843


   > 估计使用了较新版本的zookeeper,导致连接超时
   
   @Da-Hong so pls tell us ur zk version.


-- 
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-go] alchemy-lee commented on issue #1322: zk config_center can't listen configurators well

Posted by GitBox <gi...@apache.org>.
alchemy-lee commented on issue #1322:
URL: https://github.com/apache/dubbo-go/issues/1322#issuecomment-881874283


   Hi, I run the program according to your comment, but I cannot reproduce the error. May you describe the reproduction method in detail? Or you can leave your contact information for better communication.


-- 
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-go] ChangedenCZD commented on issue #1322: zk config_center can't listen configurators well

Posted by GitBox <gi...@apache.org>.
ChangedenCZD commented on issue #1322:
URL: https://github.com/apache/dubbo-go/issues/1322#issuecomment-926694473


   估计使用了较新版本的zookeeper,导致连接超时


-- 
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-go] Da-Hong commented on issue #1322: zk config_center can't listen configurators well

Posted by GitBox <gi...@apache.org>.
Da-Hong commented on issue #1322:
URL: https://github.com/apache/dubbo-go/issues/1322#issuecomment-882202227


   What I fix, but not perfect.
   ```go
   // DataChange changes all listeners' event
   func (l *CacheListener) DataChange(event remoting.Event) bool {
   	if event.Content == "" {
   		//meanings new node
   		return true
   	}
   	key := l.pathToKey(event.Path)
   	if key != "" {
   		count := 1
   		for {
   			if listeners, ok := l.keyListeners.Load(key); ok {
   				for listener := range listeners.(map[config_center.ConfigurationListener]struct{}) {
   					listener.Process(&config_center.ConfigChangeEvent{Key: key, Value: event.Content, ConfigType: event.Action})
   				}
   				return true
   			}
   			if count > 3 {
   				break
   			}
   			time.Sleep(time.Second * 1)
   			count = count + 1
   		}
   	}
   	return false
   }
   ```


-- 
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-go] LaurenceLiZhixin commented on issue #1322: zk config_center can't listen configurators well

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin commented on issue #1322:
URL: https://github.com/apache/dubbo-go/issues/1322#issuecomment-898419542


   @WilliamLeaves 


-- 
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-go] LaurenceLiZhixin closed issue #1322: zk config_center can't listen configurators well

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin closed issue #1322:
URL: https://github.com/apache/dubbo-go/issues/1322


   


-- 
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-go] alchemy-lee commented on issue #1322: zk config_center can't listen configurators well

Posted by GitBox <gi...@apache.org>.
alchemy-lee commented on issue #1322:
URL: https://github.com/apache/dubbo-go/issues/1322#issuecomment-883292901


   The "xxx" should be replaced by your application name. For example, "/dubbo/config/dubbo/user-info-client.configurators"


-- 
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-go] Da-Hong commented on issue #1322: zk config_center can't listen configurators well

Posted by GitBox <gi...@apache.org>.
Da-Hong commented on issue #1322:
URL: https://github.com/apache/dubbo-go/issues/1322#issuecomment-882200305


   > Hi, I run the program according to your comment, but I cannot reproduce the error. May you describe the reproduction method in detail? Or you can leave your contact information for better communication.
   
   try sleep 1s in subscribe func:101 at registry/directory/directory.go


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