Skip to content

MINOR: Add comment to onPartitionsLost override#14121

Merged
showuon merged 2 commits intoapache:trunkfrom
fvaleri:examples-revoked
Aug 11, 2023
Merged

MINOR: Add comment to onPartitionsLost override#14121
showuon merged 2 commits intoapache:trunkfrom
fvaleri:examples-revoked

Conversation

@fvaleri
Copy link
Copy Markdown
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
Signed-off-by: Federico Valeri <fedevaleri@gmail.com>
@fvaleri fvaleri force-pushed the examples-revoked branch from 1c9f6c9 to 714d622 Compare July 28, 2023 16:55
@fvaleri fvaleri changed the title MINOR: Remove onPartitionsLost overriding in favor of default implementation MINOR: Add comment to onPartitionsLost override Jul 28, 2023
Signed-off-by: Federico Valeri <fedevaleri@gmail.com>
@fvaleri fvaleri requested a review from dajac July 28, 2023 18:34
Copy link
Copy Markdown
Member

@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
Copy Markdown
Contributor Author

fvaleri commented Jul 29, 2023

Thanks @showuon, noted.

@fvaleri
Copy link
Copy Markdown
Contributor Author

fvaleri commented Aug 2, 2023

@dajac are you good with these changes?

@showuon
Copy link
Copy Markdown
Member

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 <showuon@gmail.com>, David Jacot <djacot@confluent.io>
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 <showuon@gmail.com>, David Jacot <djacot@confluent.io>
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 <showuon@gmail.com>, David Jacot <djacot@confluent.io>
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