apache/dubbo

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

Open

#12,335 创建于 2023年5月17日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)Java (26,453 fork)batch import
help wantedtype/bug

仓库指标

Star
 (41,524 star)
PR 合并指标
 (平均合并 7天 14小时) (30 天内合并 20 个 PR)

描述

  • 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!

贡献者指南