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

Fix data race when a buffer queue is being reset instead of being initialized #4718

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emasab
Copy link
Collaborator

@emasab emasab commented May 15, 2024

A data race happened when emptying buffers of a failing broker, in its thread, with the statistics callback in main thread gathering the buffer counts. Solved by resetting the atomic counters instead of initializing them. Happening since 1.x

Closes #4522

instead of being initialized

A data race happened when emptying buffers of a failing broker, in its thread,
with the statistics callback in main thread gathering the buffer counts.
Solved by resetting the atomic counters instead of initializing them.
Happening since 1.x

Closes #4522
@emasab emasab force-pushed the dev_fix_data_race_rkbufq_atomic branch from b14d341 to f979784 Compare May 15, 2024 10:36
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.

Data race in rd_kafka_stats_emit_all
1 participant