Subscriber api without count when the query number is more than subscriber count. #8196
Labels
contribution welcome
good first issue
Good for newcomers
kind/bug
Category issues or prs related to bug.
Milestone
Describe the bug
A clear and concise description of what the bug is.
The API
/nacos/v1/ns/service/subscribers
will return count0
when the query number is more than subscriber count.For example, service
A
has 5 subscribers, but when we query with pageNo=2&pageSize=1000, the result will becount=0
, which is not expected.The reason is the end will be smaller than start and so that
subList
throw exception.Expected behavior
return right count number of subscribers.
Acutally behavior
return 0
How to Reproduce
Steps to reproduce the behavior:
/nacos/v1/ns/service/subscribers
withpageNo=2&pageSize=1000
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: