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

Fix duplicate messages in kafka causing missed ack #1451

Merged
merged 1 commit into from
Feb 12, 2019
Merged

Conversation

vancexu
Copy link
Contributor

@vancexu vancexu commented Feb 12, 2019

For visibility to elasticsearch, the message of deletion type is using docID as key for mapping from kafkaMessage to ES requests.
Duplicate deletion messages in kafka will caused ESProcessor only ack the latest kafkaMessage given docID, which will caused duplicate message before that acked message skipped being acked.

This PR check duplicate case, such as d1, d2 comes in partition, when add d2, simply ack d1 and then add d2 as usual.

@vancexu vancexu merged commit 99b9eab into master Feb 12, 2019
@vancexu vancexu deleted the es-backlog branch February 12, 2019 05:19
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.

2 participants