`end` could be `0` and thus `nextInt(end)` would throw. Use `end = 1 + 
RANDOM.nextInt(Integer.MAX_VALUE - 1);` above

[ Full content available at: https://github.com/apache/kafka/pull/5567 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to