Kingdon1992 opened a new issue #2783: URL: https://github.com/apache/rocketmq/issues/2783
BUG REPORT  1. When `index` reaches `Integer.MAX_VALUE`,the next value of `index` will be `Integer.MIN_VALUE` 2. `Math.asb(Integer.MIN_VALUE)` will be `Integer.MIN_VALUE` 3. Then `getAndIncrement()` return value will always be `Integer.MAX_VALUE` or `Integer.MIN_VALUE` 4. Considering that the initial value of index is random, it can be very close to `Integer.MAX_VALUE` at the beginning 5. Although there are multiple `MessageQueue` for the target topic, only two `MessageQueue` will actually be selected - pos=0 - pos=Math.abs(Integer.MAX_VALUE) % this.messageQueueList.size();  -- 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. For queries about this service, please contact Infrastructure at: [email protected]
