Skip to content

Commit

Permalink
[ISSUE apache#8835] When ck is in the buffer, incomplete ack will lea…
Browse files Browse the repository at this point in the history
…d to message duplication. (apache#8836)

* add brokerName in ackMsg

* add brokerName in ackMsg
  • Loading branch information
GenerousMan authored Oct 17, 2024
1 parent 4f5f705 commit 031687d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ private void putAckToStore(final PopCheckPointWrapper pointWrapper, byte msgInde
ackMsg.setTopic(point.getTopic());
ackMsg.setQueueId(point.getQueueId());
ackMsg.setPopTime(point.getPopTime());
ackMsg.setBrokerName(point.getBrokerName());
msgInner.setTopic(popMessageProcessor.reviveTopic);
msgInner.setBody(JSON.toJSONString(ackMsg).getBytes(DataConverter.CHARSET_UTF8));
msgInner.setQueueId(pointWrapper.getReviveQueueId());
Expand Down

0 comments on commit 031687d

Please sign in to comment.