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/02 09:06:16 UTC
[GitHub] [dubbo-go] chickenlj opened a new issue #1359: Server routine stuck at metadata reporting when zookeeper is not started as expected.
chickenlj opened a new issue #1359:
URL: https://github.com/apache/dubbo-go/issues/1359
Server routine stuck at metadata reporting when zookeeper is not started as expected.
How to reproduce:
1. samples https://github.com/apache/dubbo-go-samples/tree/3.0/registry/servicediscovery/zookeeper/go-server
2. start server while keeping zookeeper down
3. dump goroutine, you will find the following stack
```golang
dubbo.apache.org/dubbo-go/v3/metadata/mapping/dynamic.(*DynamicConfigurationServiceNameMapping).Map(service_name_mapping.go:67)
dubbo.apache.org/dubbo-go/v3/registry/servicediscovery.(*serviceDiscoveryRegistry).Register(service_discovery_registry.go:190)
dubbo.apache.org/dubbo-go/v3/registry/protocol.(*registryProtocol).Export(protocol.go:198)
dubbo.apache.org/dubbo-go/v3/config.(*ServiceConfig).Export(service_config.go:220)
dubbo.apache.org/dubbo-go/v3/config.loadProviderConfig(config_loader.go:282)
dubbo.apache.org/dubbo-go/v3/config.providerInitOption.func2(config_loader_options.go:105)
dubbo.apache.org/dubbo-go/v3/config.(*optionFunc).apply(config_loader_options.go:43)
dubbo.apache.org/dubbo-go/v3/config.LoadWithOptions(config_loader.go:399)
dubbo.apache.org/dubbo-go/v3/config.Load(config_loader.go:386)
main.main(server.go:59)
```
--
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] WilliamLeaves commented on issue #1359: Server routine stuck at metadata reporting when zookeeper is not started as expected.
Posted by GitBox <gi...@apache.org>.
WilliamLeaves commented on issue #1359:
URL: https://github.com/apache/dubbo-go/issues/1359#issuecomment-898339202
The Problem has been reproduced, and the program perform panic instead of stucked.
I think it is reasonable to perform panic if server cannot connect to config-center during preparing environment immediately, not during export procedure.
--
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