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 2020/12/27 19:38:13 UTC

[GitHub] [dubbo-go] JiaLiangoooo opened a new issue #749: 【consul】服务被interrupt之后,并不会立刻从注册中心消失

JiaLiangoooo opened a new issue #749:
URL: https://github.com/apache/dubbo-go/issues/749


   <!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
   
   -->
   
   
   **What happened**:
   目前注册中心用的consul,服务被强行interrupt, 现象是当前的已经被注册上去的service并不会立即消失. 而是过一段时间后会被注册中心自动删除.  registry中的Unregister并不会被调用
   
   **What you expected to happen**:
   服务被interrupt, 应该直接从注册中心UnRegister, 而不应该依赖consul检测后,自动清除
   


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

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] JiaLiangoooo commented on issue #749: 【consul】服务被interrupt之后,并不会立刻从注册中心消失

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


   **目前register的URL与unregister的URL不是一样的,并不会从注册中心下线**
   
   ## register
   ```
   2020-12-27T21:13:11.672+0800    INFO    consul/utils.go:38      grpc://:20001/Ag2ChatImpl?application=chat&cluster=failover&interface=net.chat.service.Ag2ChatProvider&loadbalance=random&release=dubbo-golang-1.3.0&timestamp=1609074791&warmup=100
   2020-12-27T21:13:11.672+0800    INFO    consul/registry.go:95   register--- grpc://192.168.1.102:20001/Ag2ChatImpl?application=chat&cluster=failover&interface=net.chat.service.Ag2ChatProvider&loadbalance=random&release=dubbo-golang-1.3.0&timestamp=1609074791&warmup=100
   
   2020-12-27T21:13:11.660+0800    INFO    consul/utils.go:38      grpc://:20000/GrpcChatImpl?application=chat&cluster=failover&interface=net.chat.service.ChatProvider&loadbalance=chatbl&release=dubbo-golang-1.3.0&timestamp=1609074791&warmup=100
   2020-12-27T21:13:11.660+0800    INFO    consul/registry.go:95   register--- grpc://192.168.1.102:20000/GrpcChatImpl?application=chat&cluster=failover&interface=net.chat.service.ChatProvider&loadbalance=chatbl&release=dubbo-golang-1.3.0&timestamp=1609074791&warmup=100
   
   ```
   
   ## unregister
   ```
   2020-12-27T21:13:35.547+0800    INFO    consul/registry.go:119  unregister--- consul://127.0.0.1:8500?group=&registry=consul&registry.label=true&registry.preferred=false&registry.role=3&registry.timeout=3s&registry.ttl=10m&registry.weight=0&registry.zone=&simplified=true
   2020-12-27T21:13:35.547+0800    INFO    consul/utils.go:38      consul://127.0.0.1:8500?group=&registry=consul&registry.label=true&registry.preferred=false&registry.role=3&registry.timeout=3s&registry.ttl=10m&registry.weight=0&registry.zone=&simplified=true
   
   2020-12-27T21:13:35.549+0800    INFO    consul/registry.go:119  unregister--- consul://127.0.0.1:8500?group=&registry=consul&registry.label=true&registry.preferred=false&registry.role=3&registry.timeout=3s&registry.ttl=10m&registry.weight=0&registry.zone=&simplified=true
   2020-12-27T21:13:35.549+0800    INFO    consul/utils.go:38      consul://127.0.0.1:8500?group=&registry=consul&registry.label=true&registry.preferred=false&registry.role=3&registry.timeout=3s&registry.ttl=10m&registry.weight=0&registry.zone=&simplified=true
   
   ```


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

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 #749: 【consul】服务被interrupt之后,并不会立刻从注册中心消失

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


   I created a PR: ,please review:
   https://github.com/apache/dubbo-go/pull/787


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

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 closed issue #749: 【consul】服务被interrupt之后,并不会立刻从注册中心消失

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


   


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

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 closed issue #749: 【consul】服务被interrupt之后,并不会立刻从注册中心消失

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


   


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

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] zouyx commented on issue #749: 【consul】服务被interrupt之后,并不会立刻从注册中心消失

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


   yes, you are right .that is a bug, if you know how to fix it , pr is welcome.


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

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