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

set active_tps in place #239

Merged
merged 6 commits into from
Dec 14, 2021

Conversation

ekerstens
Copy link
Contributor

Description

In some cases, we see that events are skipped by the consumer because _active_partitions becomes an empty set when partitions are revoked. Then, when new partitions are assigned, a new set is created instead of modifying the old set in place. This can break old references still pointing to the original object. This change modifies _set_active_tps to change the set in place.

@ekerstens ekerstens marked this pull request as ready for review December 14, 2021 22:35
@patkivikram patkivikram merged commit ef3c6e1 into faust-streaming:master Dec 14, 2021
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