You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am sure that all the content I provide is in English.
Search before asking
I had searched in the issues and found no similar issues.
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo Java 3.2.5, OpenJDK 1.8
Steps to reproduce this issue
Got the warn log below sometimes when shutting down our Dubbo-Spring integrated application.
[DUBBO] null, dubbo version: 3.2.6-HA.1.0.5-RELEASE, current host: 10.232.232.201, error code: 99-0. This may be caused by unknown error in registry module, go to https://dubbo.apache.org/faq/99/0 to find instructions.
java.lang.NullPointerException
org.apache.dubbo.registry.integration.RegistryProtocol$ExporterChangeableWrapper.unregister(RegistryProtocol.java:1052)
org.apache.dubbo.registry.integration.RegistryProtocol$DestroyableExporter.unregister(RegistryProtocol.java:760)
org.apache.dubbo.config.ServiceConfig.unexport(ServiceConfig.java:208)
...
The corresponding thread name is SpringApplicationShutdownHook.
What you expected to happen
DubboShutdownHook waited DubboDeployApplicationListener(within SpringApplicationShutdownHook thread) to destroy the applicationMode for 10 seconds(default), then it will continue executing.
If things happened in the order below, we will get this warn log.
RegistryProtocol.ExporterChangeableWrapper#unregister loop applicationModel.getPubModuleModels() in thread SpringApplicationShutdownHook
DubboShutdownHook destroy a moduleModel, set the moduleModel's serviceRepository to null.
RegistryProtocol.ExporterChangeableWrapper#unregister will get NPE when calling moduleModel.getServiceRepository().getExportedServices()
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Yes I am willing to submit a pull request on my own!
Pre-check
Search before asking
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo Java 3.2.5, OpenJDK 1.8
Steps to reproduce this issue
Got the warn log below sometimes when shutting down our Dubbo-Spring integrated application.
The corresponding thread name is SpringApplicationShutdownHook.
What you expected to happen
DubboShutdownHook waited DubboDeployApplicationListener(within SpringApplicationShutdownHook thread) to destroy the applicationMode for 10 seconds(default), then it will continue executing.
If things happened in the order below, we will get this warn log.
moduleModel.getServiceRepository().getExportedServices()
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct
The text was updated successfully, but these errors were encountered: