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

Do not start streams for immediately revoked/lost partitions #1298

Closed
wants to merge 1 commit into from

Conversation

erikvanoosten
Copy link
Collaborator

As discovered by @ytalashko (see #1294), it is possible that a partition is assigned and immediately revoked in the same poll. No stream should be started for these partitions.

Unlike #1294, this PR does not hide the assigned+revoked partitions from the diagnostic events and rebalance metrics. In addition, this PR also supports the unlikely event of a assigned+lost partition.

As discovered by @ytalashko (see #1294), it is possible that a partition is assigned and immediately revoked in the same poll. No stream should be started for these partitions.

Unlike #1294, this PR does _not_ hide the assigned+revoked partitions from the diagnostic events and rebalance metrics. In addition, this PR also supports the unlikely event of a assigned+lost partition.
@svroonland
Copy link
Collaborator

I thought about solving it this way as well, but I figured the semantics of RebalanceEvent made more sense in the other way, where in a single RebalanceEvent partitions can either be assigned or revoked, not both. Which semantics are desirable for the metrics, I don't know.

Since I have no strong preference for either direction, this PR is fine for me as well.

@erikvanoosten
Copy link
Collaborator Author

As @ytalashko points out in #1294 (comment), this PR has a bug when a partition is first revoked and then assigned (in the same poll). Closing!

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