We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
后台显示服务列表不全
问题出现在这个方法,这个返回值count错误,导致不会继续拉取下一页,入参PAGINATION_SIZE是多少,返回值count就是多少 org.apache.dubbo.admin.registry.mapping.impl.NacosServiceMapping#getAllServiceNames org.apache.dubbo.registry.nacos.NacosNamingServiceWrapper#getServicesOfServer
The text was updated successfully, but these errors were encountered:
Dubbo Admin version:0.6.0
Sorry, something went wrong.
这个分页错误,可以改成这样
private Set<String> getAllServiceNames() throws NacosException { Set<String> serviceNames = new HashSet<>(); int pageIndex = 1; ListView<String> listView; do { listView = namingService.getServicesOfServer(pageIndex++, PAGINATION_SIZE, Constants.DEFAULT_GROUP); serviceNames.addAll(listView.getData()); } while (listView.getData().size() == PAGINATION_SIZE && !listView.getData().isEmpty()); return serviceNames; }
No branches or pull requests
Environment
Steps to reproduce this issue
后台显示服务列表不全

问题出现在这个方法,这个返回值count错误,导致不会继续拉取下一页,入参PAGINATION_SIZE是多少,返回值count就是多少

org.apache.dubbo.admin.registry.mapping.impl.NacosServiceMapping#getAllServiceNames
org.apache.dubbo.registry.nacos.NacosNamingServiceWrapper#getServicesOfServer
The text was updated successfully, but these errors were encountered: