XiaoyiPeng commented on code in PR #4281:
URL: https://github.com/apache/rocketmq/pull/4281#discussion_r870931759
##########
store/src/main/java/org/apache/rocketmq/store/index/IndexFile.java:
##########
@@ -145,12 +145,9 @@ public boolean putKey(final String key, final long
phyOffset, final long storeTi
return false;
}
- public int indexKeyHashMethod(final String key) {
+ private int indexKeyHashMethod(final String key) {
int keyHash = key.hashCode();
- int keyHashPositive = Math.abs(keyHash);
Review Comment:
Oh, you remind me, this case can lead to serious problem.
--
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]