Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #6917] fix cannot query all messages of the same msgId #6918

Merged
merged 2 commits into from
Jun 23, 2023

Conversation

yuz10
Copy link
Member

@yuz10 yuz10 commented Jun 18, 2023

Which Issue(s) This PR Fixes

Fixes #6917

Brief Description

How Did You Test This Change?

Comment on lines -416 to -420
if (messageList.get(0).getStoreTimestamp() > msgExt.getStoreTimestamp()) {

messageList.clear();
messageList.add(msgExt);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If only one is to be kept, do we need to retain the original semantics and ensure that the storeTimestamp is the greatest for this one to be kept?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, A consumer that achieves idempotence only takes the first message, and ignores others. So I think it's not appropriate to keep the last message.

@RongtongJin RongtongJin merged commit fd4a397 into apache:develop Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] cannot query all messages of the same msgId
2 participants