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/11/18 08:34:47 UTC

[GitHub] [dubbo] YuWan1117 opened a new issue #9295: 基于3.0.0使用triple协议提示“”

YuWan1117 opened a new issue #9295:
URL: https://github.com/apache/dubbo/issues/9295


   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ## Ask your question here
   基于3.0.0版本使用triple协议、zookeeper注册中心,配置provider仅通过应用级发现`dubbo.application.register-mode=instance`,启动服务后观察ZK的services/路径下对应服务并没有注册成功。
   - 配置信息如下
   ```
   dubbo:
     application:
       name: hello-service # 应用名
       qos-enable: false
       logger: slf4j
       register-mode: instance
     protocols:
       tri:
         name: tri
         port: 20880
         threads: 500
   #    dubbo:
   #      name: dubbo
   #      port: 20415
   #      threads: 500
     registry:
       address: ${zookeeper_host}
       protocol: zookeeper
       parameters:
         register-type: service
   ```
   - 报错信息如下
   ```
   [WARN ] [2021-11-18 16:29:17.156] [Dubbo-framework-scheduler-thread-1] [] [] [ServiceInstanceMetadataUtils.lambda$refreshMetadataAndInstance$1:267] [ [DUBBO] Refreshing of service instance started, but instance hasn't been registered yet., dubbo version: 3.0.0, current host: 172.X.X.X]
   ```
   ### 补充其他场景测试情况
   - 使用3.0.0版本,provider端基于双注册协议(dubbo+triple)启动后ZK上成功显示对应的注册信息(consumer可以通过实例正常访问)
   - 使用3.0.0版本,provider端基于dubbo协议启动后ZK成功显示对应的注册信息(consumer可以通过实例正常访问)
   - 使用3.0.4版本,provider端基于triple协议启动后ZK成功显示对应的注册信息(consumer可以通过实例正常访问)
   **NOTE** 在3.0.4版本基于triple协议的测试中,除了dubbo版本不一样外,其他配置、代码均一致。因此想确认下3.0.0版本是不是本就存在问题(对应报错信息见上面的内容),具体问题是什么?如何fix,对应的commit信息是哪里?


-- 
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] EarthChen commented on issue #9295: 基于3.0.0使用triple协议实现“应用级发现”失败,WARN日志“instance hasn't been registered yet”

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


   对于 triple 协议,server 的启动方式和 dubbo 的不一样,triple 协议中线程切换会更多一些, 在3.x 早期,对 triple 的测试用例覆盖不全。可能就是有一些问题。在新版本3.0.3+ 对于 triple 协议的 it 基本已经覆盖。基本不会再出现这些问题。
   在3.0.3引入多实例后,整体有了很大的变化,所以你描述的在哪里修复的可能不太好去定位。
   但是基本上是由于部分使用了 context(threadlocal)进行传递的,在发生线程切换时会导致信息丢失,相关的 bug 的应该已经修复。
   


-- 
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] YuWan1117 commented on issue #9295: 基于3.0.0使用triple协议实现“应用级发现”失败,WARN日志“instance hasn't been registered yet”

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


   OK。感谢,所以建议我这边直接使用3.0.3+版本即可哈~


-- 
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] YuWan1117 closed issue #9295: 基于3.0.0使用triple协议实现“应用级发现”失败,WARN日志“instance hasn't been registered yet”

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


   


-- 
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] EarthChen commented on issue #9295: 基于3.0.0使用triple协议实现“应用级发现”失败,WARN日志“instance hasn't been registered yet”

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


   麻烦给个能复现的 demo  或者 github 地址我们来看下。


-- 
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] EarthChen commented on issue #9295: 基于3.0.0使用triple协议实现“应用级发现”失败,WARN日志“instance hasn't been registered yet”

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


   对于 triple 协议,server 的启动方式和 dubbo 的不一样,triple 协议中线程切换会更多一些, 在3.x 早期,对 triple 的测试用例覆盖不全。可能就是有一些问题。在新版本3.0.3+ 对于 triple 协议的 it 基本已经覆盖。基本不会再出现这些问题。
   在3.0.3引入多实例后,整体有了很大的变化,所以你描述的在哪里修复的可能不太好去定位。
   但是基本上是由于部分使用了 context(threadlocal)进行传递的,在发生线程切换时会导致信息丢失,相关的 bug 的应该已经修复。
   


-- 
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] YuWan1117 commented on issue #9295: 基于3.0.0使用triple协议实现“应用级发现”失败,WARN日志“instance hasn't been registered yet”

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


   demo已提供,见下方github链接。感谢~
   https://github.com/YuWan1117/dubbo-demo


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