使用Nacos作为dubbo注册中心时,服务列表不全

未关闭
#1,285 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 8 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
java

调研方向

首先阅读 org.apache.dubbo.admin.registry.mapping.impl.NacosServiceMapping#getAllServiceNames 和 org.apache.dubbo.registry.nacos.NacosNamingServiceWrapper#getServicesOfServer。使用报告中的环境复现 Nacos 2.0.3 的分页行为,并检查返回的数量如何控制下一页的获取。完成的标准是服务列表包含所有已注册的服务,而不是在一页后停止。

由索引模型根据 Issue 内容生成。

描述

  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the REAMDE of this repository and believe that this is not a duplicate.
Environment
  • Dubbo Admin version: 3.0.6
  • Registry center detail (type and version): Nacos 2.0.3
  • Operating System version: windows
  • Java version: java 8
Steps to reproduce this issue

后台显示服务列表不全
image

问题出现在这个方法,这个返回值count错误,导致不会继续拉取下一页,入参PAGINATION_SIZE是多少,返回值count就是多少
org.apache.dubbo.admin.registry.mapping.impl.NacosServiceMapping#getAllServiceNames
org.apache.dubbo.registry.nacos.NacosNamingServiceWrapper#getServicesOfServer
image

image

主要语言
Go
星标
4.1k
派生
2.2k
平均合并
6 天 2 小时
30 天内合并 PR
4

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/dubbo-admin 的其他 Issue

查看 apache/dubbo-admin 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。