apache/dubbo

"offline" command causes "Notify service xxx with urls 0"

Open

#12.335 aperta il 17 mag 2023

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Java (26.453 fork)batch import
help wantedtype/bug

Metriche repository

Star
 (41.524 star)
Metriche merge PR
 (Merge medio 7g 14h) (20 PR mergiate in 30 g)

Descrizione

  • 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

  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!

Guida contributor