Repository navigation
Conversation
The ClickHouse fork branch `ClickHouse/v2.16.0` (head 1dd451578aed) carries the same patch series as 2.15.1, rebased onto the v2.16.0 tag without conflicts. No ClickHouse-side adaptation was needed: v2.16.0 adds no source files under `src/`, so the explicit source list in `contrib/librdkafka-cmake/CMakeLists.txt` is unchanged, upstream `config.h.in` gains no new `WITH_*`/`HAVE_*` macros, and the files behind the uncurlify patch (`src/rdhttp.[ch]`, `src/rdkafka_sasl_oauthbearer_oidc.c`) are untouched upstream, so the Poco-based `rdhttp_poco.c` needed no update. The cJSON files are also unchanged between the two tags, so the `kafka_` prefix rename applied as is. Co-Authored-By: Claude Code <[email protected]>
|
Workflow [PR], commit [dc1e2c4] Summary: ❌
AI ReviewSummaryUpdates Missing context / blind spots
Findings❌ Blockers
Tests
Final Verdict❌ Block. Fix both dependency regressions and retain focused tests before advancing the submodule pointer. |
| @@ -1 +1 @@ | |||
| Subproject commit c58ce6331fb871bfb4b15758cfd3283dd0a512fd | |||
| Subproject commit 1dd451578aed49ba05ce8d466095048dcd7ccaa7 | |||
There was a problem hiding this comment.
[P1] Keep the metadata mutex alive until the shutdown barrier completes
This revision adds rd_kafka_metadata_cache_wait_terminate after setting RD_KAFKA_DESTROY_F_TERMINATE (imported code). That flag independently lets the internal main thread exit and call rd_kafka_destroy_internal, which destroys the metadata cache mutex and condition variable. There is no synchronization preventing that destruction before the application thread enters the new barrier, so ordinary Kafka client destruction can lock a destroyed mutex; outstanding metadata calls can also race destruction of their synchronization objects.
A deterministic local repro pauses the application thread at the new barrier until the internal thread finishes, then observes mtx_lock returning thrd_error for the destroyed metadata mutex. Please synchronize the barrier with internal-thread teardown, or perform the waiter drain on that thread before destroying the cache, and include this shutdown interleaving in regression coverage.
| @@ -1 +1 @@ | |||
| Subproject commit c58ce6331fb871bfb4b15758cfd3283dd0a512fd | |||
| Subproject commit 1dd451578aed49ba05ce8d466095048dcd7ccaa7 | |||
There was a problem hiding this comment.
[P1] Honor producer retry limits when recovery closes live brokers
The new rebootstrap path decommissions connected brokers, including in-flight Produce requests whose records may already be appended. Those requests fail with RD_KAFKA_RESP_ERR__DESTROY_BROKER, but rd_kafka_handle_Produce_error treats that as definitely unpersisted and sets incr_retry to zero. It therefore resends them even with retries=0, silently duplicating writes for non-idempotent producers.
Reproduced with one mock broker, enable.idempotence=false, retries=0, metadata.recovery.rebootstrap.trigger.ms=200, and a successful produce acknowledgement delayed by 5000 ms. Requesting topic metadata while that acknowledgement is pending triggers recovery: the old revision sends once and ends at offset watermark 1; this revision sends twice and ends at watermark 2, reporting successful delivery. Please classify already-sent requests as possibly persisted and honor the retry budget when decommissioning brokers, with a regression test for this case.
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units69 translation units recompiled, 20 s compile time in total, 69 of them have a recent master baseline. |
Bump
librdkafkafrom v2.15.1 to v2.16.0.ClickHouse-side changes
contrib/librdkafka-cmake/HOW_TO_UPDATE.md— new 2.15.1 -> 2.16.0 section recording the carried patch set.Fork
Carries the 16 ClickHouse patches (ClickHouse/librdkafka#25).
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Update
librdkafkafrom v2.15.1 to v2.16.0.Workflow [PR]
Sync PR [sync-upstream/pr/128315]