Skip to content

Commit

Permalink
[ISSUE #6917] fix cannot query all messages of the same msgId
Browse files Browse the repository at this point in the history
Co-authored-by: y00421926 <[email protected]>
  • Loading branch information
yuz10 and y00421926 authored Jun 23, 2023
1 parent f76e867 commit fd4a397
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,19 +410,7 @@ public void operationComplete(ResponseFuture responseFuture) {
for (MessageExt msgExt : qr.getMessageList()) {
if (isUniqKey) {
if (msgExt.getMsgId().equals(key)) {

if (messageList.size() > 0) {

if (messageList.get(0).getStoreTimestamp() > msgExt.getStoreTimestamp()) {

messageList.clear();
messageList.add(msgExt);
}

} else {

messageList.add(msgExt);
}
messageList.add(msgExt);
} else {
log.warn("queryMessage by uniqKey, find message key not matched, maybe hash duplicate {}", msgExt.toString());
}
Expand Down

0 comments on commit fd4a397

Please sign in to comment.