Repository navigation
Fix false positive chassert in S3Queue finalizeProcessed - #96926
Merged
alexey-milovidov merged 2 commits intoFeb 15, 2026
Merged
Conversation
…h cleanup thread The `chassert` in `finalizeProcessed` checked that `processed_node_path` exists after the multi-request that creates it. However, the cleanup thread (controlled by `s3queue_tracked_files_limit` and `s3queue_cleanup_interval_*`) can remove the processed node before `finalizeProcessed` runs, causing a false positive exception in sanitizer builds. This was observed in tests with `s3queue_tracked_files_limit=9` and 10 files, where the cleanup thread (running every 50ms) would remove the oldest processed node before the assertion could verify its existence. https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=96881&sha=0dcc3bb62432be0eec7619c833f5d33f1d20f2fe&name_0=PR&name_1=Integration%20tests%20%28amd_asan%2C%20db%20disk%2C%20old%20analyzer%2C%206%2F6%29 Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
1 task
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.
Summary
chassertinObjectStorageQueueIFileMetadata::finalizeProcessedthat races with the cleanup threads3queue_tracked_files_limitis set, the cleanup thread can remove a processed node beforefinalizeProcessedverifies its existence, causing a false positive exception in sanitizer buildstest_max_set_size(10 files, limit 9, cleanup every 50ms): the oldest processed node gets cleaned up before the assertion runsCI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=96881&sha=0dcc3bb62432be0eec7619c833f5d33f1d20f2fe&name_0=PR&name_1=Integration%20tests%20%28amd_asan%2C%20db%20disk%2C%20old%20analyzer%2C%206%2F6%29
#96881
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
🤖 Generated with Claude Code
Version info
26.2.1.723