"offline" command causes "Notify service xxx with urls 0"
- Dominant language
- Java
- Stars
- 41.6k
- Forks
- 26.4k
- Avg merge
- 15h 13m
- Merged PRs (30d)
- 4
Description
- [ ] I have searched the [issues](https://github.com/apache/dubbo/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
1. 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!
```
Contributor guide
Research direction
Start by tracing the offline shutdown path and the MetadataInfo revision handling described in the report. Verify how removing services affects metadata responses during graceful shutdown, then add or update coverage for consumers receiving empty metadata and confirm the revision changes promptly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100