apache / apache/dubbo-admin

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

Open
#1,285 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
4.1k
Forks
2.2k
Avg merge
10d 12h
Merged PRs (30d)
4

Description

- [ ] I have searched the [issues](https://github.com/apache/dubbo-admin/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [REAMDE](https://github.com/apache/dubbo-admin/blob/develop/README.md) 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](https://github.com/user-attachments/assets/e65ad105-a315-46c1-a786-048adce5b68e)

问题出现在这个方法,这个返回值count错误,导致不会继续拉取下一页,入参PAGINATION_SIZE是多少,返回值count就是多少
org.apache.dubbo.admin.registry.mapping.impl.NacosServiceMapping#getAllServiceNames
org.apache.dubbo.registry.nacos.NacosNamingServiceWrapper#getServicesOfServer
![image](https://github.com/user-attachments/assets/1216c457-07aa-4fe2-9180-82626072fbf7)

![image](https://github.com/user-attachments/assets/e2bb2b91-1951-4e9e-a260-6643ecb61dfa)

Contributor guide

Open the contributing guide

Research direction

Start by reading org.apache.dubbo.admin.registry.mapping.impl.NacosServiceMapping#getAllServiceNames and org.apache.dubbo.registry.nacos.NacosNamingServiceWrapper#getServicesOfServer. Reproduce the Nacos 2.0.3 pagination behavior with the reported environment and inspect how the returned count controls fetching the next page. Done means the service list includes all registered services rather than stopping after one page.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.