apache/dubbo
GitHub で見る"offline" command causes "Notify service xxx with urls 0"
Open
#12,335 opened on 2023年5月17日
help wantedtype/bug
Repository metrics
- Stars
- (41,524 stars)
- PR merge metrics
- (平均マージ 7d 14h) (30d で 20 merged PRs)
説明
- 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!