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: Add comment to onPartitionsLost override #14121

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

fvaleri
Copy link
Contributor

@fvaleri fvaleri commented Jul 28, 2023

This adds comments to the ConsumerRebalanceListener overrides, in order to briefly explain why we are overriding these methods, when they are called, and what you can or can't do. Especially onPartitionsLost can create some confusion given the default implementation.

@fvaleri fvaleri requested a review from showuon July 28, 2023 13:13
@fvaleri fvaleri changed the title MINOR: Remove onPartitionsLost overriding in favor of default implementation MINOR: Add comment to onPartitionsLost override Jul 28, 2023
@fvaleri fvaleri requested a review from dajac July 28, 2023 18:34
Copy link
Contributor

@showuon showuon 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 improvement!

@fvaleri , one suggestion: I found you usually leave empty in the PR description, which is not good for reviewers. The PR description is the first place the reviewer will read before jumping into the code change. So if you can provide more info in the description, it'll make reviewer's job easier. I personally enjoy reviewing @divijvaidya 's PR a lot, because he explains everything clearly in the PR description. So you know what he is trying to achieve in the PR and which/why the method he chose...etc before jumping into the code. This PR is a good example. FYR!

@fvaleri
Copy link
Contributor Author

fvaleri commented Jul 29, 2023

Thanks @showuon, noted.

@fvaleri
Copy link
Contributor Author

fvaleri commented Aug 2, 2023

@dajac are you good with these changes?

@showuon
Copy link
Contributor

showuon commented Aug 11, 2023

Failed tests are unrelated.

@showuon showuon merged commit 111df85 into apache:trunk Aug 11, 2023
@fvaleri fvaleri deleted the examples-revoked branch August 11, 2023 06:52
jeqo pushed a commit to aiven/kafka that referenced this pull request Aug 15, 2023
This adds comments to the ConsumerRebalanceListener overrides, in order to briefly explain why we are overriding these methods, when they are called, and what you can or can't do. Especially onPartitionsLost can create some confusion given the default implementation.

Reviewers: Luke Chen <[email protected]>, David Jacot <[email protected]>
jeqo pushed a commit to jeqo/kafka that referenced this pull request Aug 15, 2023
This adds comments to the ConsumerRebalanceListener overrides, in order to briefly explain why we are overriding these methods, when they are called, and what you can or can't do. Especially onPartitionsLost can create some confusion given the default implementation.

Reviewers: Luke Chen <[email protected]>, David Jacot <[email protected]>
jeqo pushed a commit to jeqo/kafka that referenced this pull request Aug 15, 2023
This adds comments to the ConsumerRebalanceListener overrides, in order to briefly explain why we are overriding these methods, when they are called, and what you can or can't do. Especially onPartitionsLost can create some confusion given the default implementation.

Reviewers: Luke Chen <[email protected]>, David Jacot <[email protected]>
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