Repository navigation
fix data race - #877
Merged
Merged
fix data race#877
Conversation
pull Bot
pushed a commit
to muzammilar/ClickHouse
that referenced
this pull request
Sep 29, 2026
Upstream changes between `v5.1.1` and `v5.2.0`: - Fix a data race in `shared_container_extract_copy`: it now uses the new `croaring_refcount_is_unique` helper instead of decrementing the refcount and racing with a concurrent reader, and it releases the shared container properly on the copy path (RoaringBitmap/CRoaring#877). - Add set-cardinality methods (`and_cardinality`, `or_cardinality`, `andnot_cardinality`, `xor_cardinality`, `intersect`) to `Roaring64Map` (RoaringBitmap/CRoaring#875). Purely additive C++ API. - Documentation updates and CI action bumps. No ClickHouse-side adaptation is needed: the source file set is unchanged, so `contrib/croaring-cmake/CMakeLists.txt` stays as is, and the C/C++ API changes are additive. Verified that `groupBitmapState` serialization and the bitmap functions produce byte-identical results against the previous binary over `UInt8`/`UInt16`/`UInt32`/`UInt64` and the signed types, including cross-version deserialization of `AggregateFunction(groupBitmap, UInt32)` states in both directions. Co-Authored-By: Claude Opus 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There is a possible data race.
Fixes #876