lizhimins commented on code in PR #10277:
URL: https://github.com/apache/rocketmq/pull/10277#discussion_r3151907911
##########
broker/src/main/java/org/apache/rocketmq/broker/pop/PopConsumerService.java:
##########
@@ -525,6 +527,13 @@ public void changeInvisibilityDuration(long popTime, long
invisibleTime, long ch
}
}
+ // If the new CK has the same key as the old CK (same
visibilityTimeout),
+ // the write already overwrites the old record in RocksDB, skip delete
+ // to avoid removing the newly written record.
+ if (!skipWrite && ckRecord.getVisibilityTimeout() ==
ackRecord.getVisibilityTimeout()) {
Review Comment:
这里和下面合并吧,别取反了
--
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]