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 2022/02/09 03:34:48 UTC
[GitHub] [dubbo] wenlincheng opened a new issue #9661: 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者
wenlincheng opened a new issue #9661:
URL: https://github.com/apache/dubbo/issues/9661
dubbo-spring-boot-starter 2.7.15
springboot 2.3.2.RELEASE
使用nacos 2.0.3 / 1.4.1 作为注册中心
依次启动服务提供者和消费者,能正常调用,当重启服务消费者,调用会报无法找到服务提供者 org.apache.dubbo.rpc.RpcException: No provider available from registry xxxxx:80 for service ....... 再重启服务提供者,则恢复正常
配置
```
# Dubbo
dubbo:
scan:
# dubbo 服务扫描基准包
base-packages: com.xxxx.xxxx.item.service
# 协议
protocols:
# dubbo 协议
dubbo:
name: dubbo
port: -1
registry:
address: nacos://xxxxx:80/?username=nacos&password=nacos&namespace=${spring.profiles.active}&group=ARK_SAILOR
application:
qos-enable: false
logger: slf4j
consumer:
check: 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] Johnson-Jia commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
Johnson-Jia commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1059714136
替换为
dubbo-spring-boot-starter 2.7.14
dubbo 2.7.15
目前观察半小时 服务 使用正常,后面持续观察看看
--
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] wenlincheng commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
wenlincheng commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1033586406
dubbo-spring-boot-starter 降为 2.7.8 解决
--
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] SuperEdison commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
SuperEdison commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1038600536
实际是真的没有可用生产者,如果你是双节点的话说明nacos还没通知到第一个重启的节点,你就已经重启第二个节点了,如果你是节点高可用持续发布的状态下,你可以等一个消费者启动完等待1分钟左右再去shutdown另一个节点,这样就可以有足够时间等待nacos通知,并且创建代理。
--
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] SuperEdison commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
SuperEdison commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1035962279
去了解下dubbo的服务发现和注册流程,你会发现这是正常情况,消费者的不是一启动就可以调用生产者,他正确的顺序应该是项目启动->通过ReferenceConfig转成Protocol然后再变成Invoker最后会生成代理,而消费者并是不通过代理去调用生产者,而是在注册中心通知消费者生产者可用后回去刷新生产者的Invoker,然后去创建ExchangeClient,才会去生产rpc代理进行调用。
--
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] wenlincheng removed a comment on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
wenlincheng removed a comment on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1061315931
>
应该是同一个问题,换成 dubbo-spring-boot-starter 2.7.14 运行稳定,已上生产
--
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] wenlincheng commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
wenlincheng commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1037051669
> 去了解下dubbo的服务发现和注册流程,你会发现这是正常情况,消费者的不是一启动就可以调用生产者,他正确的顺序应该是项目启动->通过ReferenceConfig转成Protocol然后再变成Invoker最后会生成代理,而消费者并是不通过代理去调用生产者,而是在注册中心通知消费者生产者可用后回去刷新生产者的Invoker,然后去创建ExchangeClient,才会去生产rpc代理进行调用。
问题在于重启消费者后无法找到提供者,需要再次重启提供者才会触发注册中心通知消费者去刷新提供者的Invoker,正常情况是不需要重启提供者的,在2.7.15出现的这个问题,试过了 2.7.14、2.7.8不存在
--
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] SuperEdison removed a comment on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
SuperEdison removed a comment on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1038600906
nacos通知的时机并不是实时的,不是说你消费者一启动好就马上可以创建代理
--
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] Johnson-Jia commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
Johnson-Jia commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1059711584
dubbo-spring-boot-starter 2.7.15
springboot 2.4.13
使用nacos server 2.0.4 nacos-client 2.0.4 作为注册中心
消费端提示 大量生产者不存在,但是nacos里面存在服务者,
org.apache.dubbo.rpc.RpcException: No provider available from registry 10.0.1.*:8848 for service com.tbc.app.els.courseevaluateuser.CourseEvaluateUserService:1.0 on consumer 10.x.x.x use dubbo version 2.7.15, please check status of providers(disabled, not registered or in blacklist).
--
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] SuperEdison edited a comment on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
SuperEdison edited a comment on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1038599118
你可以去看看Nacos通知消费者可用的那一段代码。



当项目启动的时候ExchangeClient会为空,而当注册中心通知dubbo后会去创建ExchangClient并且创建代理。实际是真的没有可用生产者,如果你是双节点的话说明nacos还没通知到第一个重启的节点,你就已经重启第二个节点了,如果你是节点高可用持续发布的状态下,你可以等一个消费者启动完等待1分钟左右再去shutdown另一个节点,这样就可以有足够时间等待nacos通知,并且创建代理。nacos通知的时机并不是实时的,不是说你消费者一启动好就马上可以创建代理。而是看nacos目前的压力大小(这个仅仅我自己测过具体源码没看)。
--
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] SuperEdison removed a comment on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
SuperEdison removed a comment on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1038600536
实际是真的没有可用生产者,如果你是双节点的话说明nacos还没通知到第一个重启的节点,你就已经重启第二个节点了,如果你是节点高可用持续发布的状态下,你可以等一个消费者启动完等待1分钟左右再去shutdown另一个节点,这样就可以有足够时间等待nacos通知,并且创建代理。
--
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] SuperEdison commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
SuperEdison commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1064742753
可以去看看是不是nacos原因
--
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] wenlincheng commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
wenlincheng commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1034424287
2.7.14也不存在这个问题
--
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] SuperEdison commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
SuperEdison commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1038600906
nacos通知的时机并不是实时的,不是说你消费者一启动好就马上可以创建代理
--
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] wenlincheng commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
wenlincheng commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1061315931
>
应该是同一个问题,换成 dubbo-spring-boot-starter 2.7.14 运行稳定,已上生产
--
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] SuperEdison commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
SuperEdison commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1038599118
你可以去看看Nacos通知消费者可用的那一段代码。



当项目启动的时候ExchangeClient会为空,而当注册中心通知dubbo后会去创建ExchangClient并且创建代理
--
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] Johnson-Jia commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
Johnson-Jia commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1060236258
>
dubbo-spring-boot-starter 2.7.14
dubbo 2.7.15
springboot 2.4.13
使用nacos server 2.0.4 nacos-client 2.0.4 作为注册中心
又再次出现这个问题 , 准备把 Dubbo 换到2.7.14 试试
--
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] Johnson-Jia commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
Johnson-Jia commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1061320236
问题现象以及原因:
现象: 每次修改nacos配置中心 配置文件后,过几分钟就找不到生产提供者。
分析: 是否是 自动刷新配置,重新创建bean 以及Dubbo代理对象,引起的原因?
--
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] wenlincheng commented on issue #9661: 2.7.15 重启服务消费者,会无法找到服务提供者,需要再次重启服务提供者,2.7.8 不存在这个问题
Posted by GitBox <gi...@apache.org>.
wenlincheng commented on issue #9661:
URL: https://github.com/apache/dubbo/issues/9661#issuecomment-1061316788
> >
>
> dubbo-spring-boot-starter 2.7.14 dubbo 2.7.15 springboot 2.4.13 使用nacos server 2.0.4 nacos-client 2.0.4 作为注册中心
>
> 又再次出现这个问题 , 准备把 Dubbo 换到2.7.14 试试
应该是同一个问题,换成 dubbo-spring-boot-starter 2.7.14 运行稳定,已上生产
--
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