Repository navigation
Replace disk_transaction_wait_for_blob_removal with persistent_removal_log in CI - #133235
Michicosun wants to merge 5 commits into
Conversation
|
Workflow [PR], commit [3e06aa2] Summary: ✅ AI ReviewSummaryThe PR enables Findings
Tests
Final VerdictStatus: Drain startup cleanup before taking replicated S3 object baselines, and obtain the affected integration-test results. |
AI review of a later commit does not approve the PR, see the AI Review comment.
| <endpoint>http://minio1:9001/root/data/</endpoint> | ||
| <access_key_id>minio</access_key_id> | ||
| <secret_access_key>ClickHouse_Minio_P@ssw0rd</secret_access_key> | ||
| <persistent_removal_log>true</persistent_removal_log> |
There was a problem hiding this comment.
[Major] Drain startup deletions before recording replicated S3 object baselines
With the shared disk_transaction_wait_for_blob_removal=false, the startup IDisk::checkAccess calls on s3 and s3_cache can return while their temporary blobs are still queued for deletion. This module's fixture does not drain those queues. If test_task_canceled_after_part_handoff or test_retry_rejected_after_failed_commit runs first, its objects_before snapshot (test.py:226 and test.py:275) can include an access-check blob. Once the background worker deletes it, check_objects_restored can never reach equality with that snapshot and fails after its retry loop, even when cancellation and rollback worked correctly. The immediate exact count in test_insert_select_replicated also assumes startup garbage is already gone.
Wait for SYSTEM WAIT BLOBS CLEANUP 's3_cache' on all three nodes before the fixture yields; this also waits for the underlying s3 disk. As with the other baseline fixes in this PR, the wait must precede taking the expected object set: retrying the final assertion cannot restore a deleted baseline blob.
…after_read` The access check of the `reserve_granularity_cache` disk leaves a 4-byte entry in the cache. With `disk_transaction_wait_for_blob_removal` disabled its blob is removed in the background, and the cache entry goes away with it. When that happened between the `sum(downloaded_size)` and the `current_size` queries, the test failed with `AssertionError: reserved 1251949 != downloaded 1251953 (range 4397681)`. Run `SYSTEM WAIT BLOBS CLEANUP` before the cache sizes are compared. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=gh-readonly-queue/master/pr-133235-4bb4fd70a64f5f47d831ac058dc1e66ef7566379&sha=64b7c09a55636599fb3332ec1d558c6930e84adf&name_0=MergeQueueCI PR: #133235 Co-Authored-By: Claude Fable 5.2 <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Enable
persistent_removal_logby default in CI and disabledisk_transaction_wait_for_blob_removal.Workflow [PR]
Sync PR [sync-upstream/pr/133235]