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

MINOR: improvement on top of KAFKA-5793: Tighten up the semantics of the OutOfOrderSequenceException #3935

Closed
wants to merge 3 commits into from

Conversation

tedyu
Copy link
Contributor

@tedyu tedyu commented Sep 21, 2017

Simplified the condition in Sender#failBatch()
Added log in TransactionManager#updateLastAckedOffset()

@tedyu
Copy link
Contributor Author

tedyu commented Sep 21, 2017

@apurvam @hachikuji
Please take a look.

Copy link

@hachikuji hachikuji left a comment

Choose a reason for hiding this comment

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

Thanks for the patch. One minor comment.

lastAckedOffset.put(batch.topicPartition, lastOffset);
} else {
log.debug("partition {} keeps lastOffset at {}", batch.topicPartition, lastOffset);

Choose a reason for hiding this comment

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

Maybe this should be trace level. I can imagine it being very spammy when you have a lot of partitions. Also, we usually capitalize the first word.

Copy link

@hachikuji hachikuji left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the patch!

@asfgit asfgit closed this in 690575e Sep 21, 2017
@apurvam
Copy link
Contributor

apurvam commented Sep 22, 2017

A bit late, but thanks for the patch. The improvements LGTM!

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.

3 participants