Repository navigation
Fix Paimon background refresh crash on concurrent LATEST hint rewrite - #112010
Merged
alexey-milovidov merged 4 commits intoJul 28, 2026
Merged
Conversation
Contributor
|
Workflow [PR], commit [7490f9a] Summary: ✅
AI ReviewSummaryThis PR switches Paimon PR Metadata
Final Verdict
|
The override inherits its default argument from the base declaration. Remove the duplicate default to satisfy google-default-arguments. CI: ClickHouse#112010
Contributor
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 108/114 (94.74%) · Uncovered code |
alexey-milovidov
approved these changes
Jul 28, 2026
This was referenced Jul 28, 2026
thevar1able
added a commit
that referenced
this pull request
Jul 29, 2026
…nt check The site came in with the master merge, in the latest-hint verification added by #112010. The parentheses around `PAIMON_SNAPSHOT_PREFIX + ...` are load-bearing; only the ones around the bare `PAIMON_SNAPSHOT_DIR` are redundant. Build log: https://s3.amazonaws.com/clickhouse-test-reports/PRs/108400/5e9528af4066244f8e892f8ce3e78a2741cd41dc/build_arm_tidy/build_clickhouse/build_clickhouse.log Related: #112010 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
alexey-milovidov
added a commit
that referenced
this pull request
Jul 30, 2026
Resolve the cherry-pick of #112010 ("Fix Paimon background refresh crash on concurrent LATEST hint rewrite") against the `26.3` code base. `26.3` predates several refactorings of `PaimonTableClient`, so the fix is re-applied on top of the older API surface instead of being taken verbatim: * `getPaimonMetadataReadSettings` does not exist in `26.3`; the read settings are derived from `getContext()->getReadSettings()` and the filesystem cache is disabled explicitly, because `snapshot/LATEST` is mutable and rewritten in place by writers. * `ReadSettings` is still flat in `26.3`, so `local_fs_buffer_size` and `remote_fs_buffer_size` are used instead of `local_fs_settings.buffer_size` / `remote_fs_settings.buffer_size`. * `PAIMON_SNAPSHOT_PRIFIX` and `getLastestTableSnapshotInfo` keep their `26.3` spelling (the typos were fixed later on `master`). The behavioral part of the fix is preserved: the hint file is read with a single bounded `readSmallObjectAndGetObjectMetadata` request instead of `readStringUntilEOF` over an asynchronous buffer, the parsed version must consume the whole content and be a positive `Int64`, the snapshot file referenced by the hint must exist, and any failure falls back to snapshot listing instead of propagating. The new `gtest_paimon_latest_hint.cpp` is adapted to the same `26.3` names.
robot-ch-test-poll2
added a commit
that referenced
this pull request
Jul 30, 2026
Cherry pick #112010 to 26.3: Fix Paimon background refresh crash on concurrent LATEST hint rewrite
robot-clickhouse
added a commit
that referenced
this pull request
Jul 30, 2026
…urrent LATEST hint rewrite
robot-ch-test-poll2
added a commit
that referenced
this pull request
Jul 30, 2026
Cherry pick #112010 to 26.5: Fix Paimon background refresh crash on concurrent LATEST hint rewrite
robot-clickhouse
added a commit
that referenced
this pull request
Jul 30, 2026
…urrent LATEST hint rewrite
robot-ch-test-poll2
added a commit
that referenced
this pull request
Jul 30, 2026
Cherry pick #112010 to 26.6: Fix Paimon background refresh crash on concurrent LATEST hint rewrite
robot-clickhouse
added a commit
that referenced
this pull request
Jul 30, 2026
…urrent LATEST hint rewrite
alexey-milovidov
added a commit
to groeneai/ClickHouse
that referenced
this pull request
Jul 30, 2026
…int-concurrent-read-crash The minimal LATEST-hint fix landed on master meanwhile (ClickHouse#112010), so the two conflicts are resolved in favour of what is already merged, keeping only this branch's additional scope on top: * `getLatestTableSnapshotInfo` keeps master's `readSmallObjectAndGetObjectMetadata` call, its 64-byte cap and its buffer-size floors; the only thing carried over from this branch is the ETag pin (`makeEtagPinnedStoredObject`), which the merged version does not have. * `gtest_paimon_latest_hint.cpp` is taken from master verbatim - it now covers the hint read and the invalid-hint fallback. This branch's tests for the other mutable metadata objects (`schema-0`, `snapshot-N`) and for the incremental-read guards moved to a new `gtest_paimon_mutable_metadata.cpp`, since the two files declare different helpers under the same names. The two hint tests that master's file now duplicates were dropped.
clickhouse-gh Bot
pushed a commit
that referenced
this pull request
Jul 30, 2026
…urrent LATEST hint rewrite
clickhouse-gh Bot
added a commit
that referenced
this pull request
Jul 30, 2026
Backport #112010 to 26.7: Fix Paimon background refresh crash on concurrent LATEST hint rewrite
alexey-milovidov
added a commit
that referenced
this pull request
Jul 30, 2026
Backport #112010 to 26.3: Fix Paimon background refresh crash on concurrent LATEST hint rewrite
alexey-milovidov
added a commit
that referenced
this pull request
Jul 30, 2026
Backport #112010 to 26.5: Fix Paimon background refresh crash on concurrent LATEST hint rewrite
clickhouse-gh Bot
added a commit
that referenced
this pull request
Jul 31, 2026
Backport #112010 to 26.6: Fix Paimon background refresh crash on concurrent LATEST hint rewrite
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed Paimon table reads that could fail while the mutable
snapshot/LATESThint was being replaced concurrently. Invalid or stale hints now safely fall back to snapshot listing.Crash provenance: CIDB STID family from Integration tests (amd_msan, 1/6), e.g. report https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=106177&sha=39b1915c82cf7e393efb4247e1c8f4f97b5b8e72&name_0=PR&name_1=Integration%20tests%20%28amd_msan%2C%201%2F6%29 — stack: AsynchronousBoundedReadBuffer::nextImpl -> readStringUntilEOF -> PaimonClient.cpp:178 getLatestTableSnapshotInfo.
Related: #107134
Version info
26.7.2.41,26.6.2.133,26.5.6.89,26.3.17.90