-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Data race in rd_kafka_stats_emit_all
#4522
Comments
@ilejn found the probably cause for this datarace:
|
Yeah, it should be solved by using the atomic |
Yes, thanks @emasab , this is correct until the branch in rd_atomic32_set is
Fortunately we do have HAVE_ATOMICS_32_ATOMIC defined in ClickHouse :) |
@ilejn Can this issue be closed? |
Hello @nhaq-confluent , |
@ilejn if you can, that would be useful. We are in the process of closing out some of our issues and PR's. The PR would be easier for us to resolve as we go through everything. |
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
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
Description
ClickHouse/ClickHouse#56043
How to reproduce
Run ClickHouse integration tests with TSan until it reproduces.
Checklist
IMPORTANT: We will close issues where the checklist has not been completed.
Please provide the following information:
confluentinc/cp-kafka:5.2.0
<REPLACE with e.g., message.timeout.ms=123, auto.reset.offset=earliest, ..>
Linux Ubuntu 22.04
debug=..
as necessary) from librdkafkaThe text was updated successfully, but these errors were encountered: