yiduwangkai commented on code in PR #6270:
URL: https://github.com/apache/rocketmq/pull/6270#discussion_r1129095778
##########
store/src/main/java/org/apache/rocketmq/store/timer/TimerMessageStore.java:
##########
@@ -632,22 +637,23 @@ public boolean enqueue(int queueId) {
int sizePy = bufferCQ.getByteBuffer().getInt();
bufferCQ.getByteBuffer().getLong(); //tags code
MessageExt msgExt = getMessageByCommitOffset(offsetPy,
sizePy);
+ currQueueOffset = offset + (i / CQ_STORE_UNIT_SIZE);
Review Comment:
The isRunningEnqueue method checkpoint the offset when the resource role
changes. The offset in this case should be nextOffset
--
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]