odbozhou commented on a change in pull request #3220:
URL: https://github.com/apache/rocketmq/pull/3220#discussion_r683984548
##########
File path:
broker/src/main/java/org/apache/rocketmq/broker/processor/AbstractSendMessageProcessor.java
##########
@@ -109,7 +109,7 @@ protected MessageExtBrokerInner buildInnerMsg(final
ChannelHandlerContext ctx,
final SendMessageRequestHeader requestHeader, final byte[] body,
TopicConfig topicConfig) {
int queueIdInt = requestHeader.getQueueId();
if (queueIdInt < 0) {
- queueIdInt = Math.abs(this.random.nextInt() % 99999999) %
topicConfig.getWriteQueueNums();
Review comment:
Why was Math.abs deleted?
--
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]