You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
librdkafka client configuration: <REPLACE with e.g., message.timeout.ms=123, auto.reset.offset=earliest, ..>
Operating system: <REPLACE with e.g., Centos 5 (x64)>
Provide logs (with debug=.. as necessary) from librdkafka
Provide broker log excerpts
Critical issue
I think the issue is in rd_kafka_broker_timeout_scan accesses rkb->rkb_avg_rtt without holding a lock for rkb. In rd_kafka_stats_emit_all a read lock is taken when the stats are modified. However I am not sure how to properly fix it.
The text was updated successfully, but these errors were encountered:
antaljanosbenjamin
changed the title
Data race in rd_kafka_broker_timeout_scan/rd_avg_calc
Data race in rd_kafka_broker_timeout_scanFeb 27, 2024
azat
linked a pull request
Feb 29, 2024
that will
close
this issue
Read the FAQ first: https://github.com/confluentinc/librdkafka/wiki/FAQ
Do NOT create issues for questions, use the discussion forum: https://github.com/confluentinc/librdkafka/discussions
Description
ClickHouse/ClickHouse#60443
How to reproduce
Run ClickHouse integration tests with TSan until it reproduces.
Checklist
Please provide the following information:
confluentinc/cp-kafka:5.2.0
<REPLACE with e.g., message.timeout.ms=123, auto.reset.offset=earliest, ..>
<REPLACE with e.g., Centos 5 (x64)>
debug=..
as necessary) from librdkafkaI think the issue is in
rd_kafka_broker_timeout_scan
accessesrkb->rkb_avg_rtt
without holding a lock forrkb
. Inrd_kafka_stats_emit_all
a read lock is taken when the stats are modified. However I am not sure how to properly fix it.The text was updated successfully, but these errors were encountered: