apache/dubbo
Voir sur GitHub"offline" command causes "Notify service xxx with urls 0"
Open
#12 335 ouverte le 17 mai 2023
help wantedtype/bug
Métriques du dépôt
- Stars
- (41 524 stars)
- Métriques de merge PR
- (Merge moyen 7j 14h) (20 PRs mergées en 30 j)
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Environment
- Dubbo version: 3.1.1
- Operating System version: linux
- Java version:1.8
Steps to reproduce this issue
- we use "offline" to shutdown dubbo app gracefully. when we offline more than two instances, it is possible for consumers to get the phenomenon.
reviewing the dubbo source code, we find that when offlining a instance it will remove services in "MetadataInfo" but
the field "revision of MetadataInfo" won't change in time. if a consumer requests metadatainfo from the offlining instance, it will response the metadatainfo without services.
Pls. provide [GitHub address] to reproduce this issue.
Expected Behavior
Actual Behavior
If there is an exception, please attach the exception trace:
Just put your stack trace here!