JobseRyan opened a new pull request, #17020:
URL: https://github.com/apache/kafka/pull/17020
There was a ticket that we had excessive logging which looks like its caused
by newNode.size equalling 0 which results in:
int offset = this.randOffset.nextInt(newNodes.size());
throwing an exception. Instead i'll check the size of newNodes and return
null if its empty which is handled higher up for no nodes being found.
UTs for newNode size = 0 and being handled correctly.
### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]