Skip to content

Replace disk_transaction_wait_for_blob_removal with persistent_removal_log in CI - #133235

Open
Michicosun wants to merge 5 commits into
masterfrom
disable_disk_transaction_wait_for_blob_removal
Open

Michicosun wants to merge 5 commits into
masterfrom
disable_disk_transaction_wait_for_blob_removal

Conversation

@Michicosun

@Michicosun Michicosun commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Enable persistent_removal_log by default in CI and disable disk_transaction_wait_for_blob_removal.


Workflow [PR]
Sync PR [sync-upstream/pr/133235]

@clickhouse-gh

clickhouse-gh Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [3e06aa2]

Summary: ✅


AI Review

Summary

The PR enables persistent_removal_log on CI object-storage disks, disables disk_transaction_wait_for_blob_removal, and adds explicit cleanup waits to several tests. Request changes: the replicated S3 fixture still records object baselines before asynchronous startup cleanup finishes. The previous HDFS finding is addressed; no new inline findings were identified.

Findings

⚠️ Majors

  • tests/integration/test_replicated_merge_tree_s3/configs/config.d/storage_conf.xml:9 — Object baselines must exclude pending startup deletions. The shared configuration now lets IDisk::checkAccess return before its temporary blobs are deleted. The module fixture still yields without draining either disk's cleanup queue. If test_task_canceled_after_part_handoff or test_retry_rejected_after_failed_commit runs first, objects_before at test.py:226 or test.py:275 can contain an access-check blob from any of the three nodes. Once that blob disappears, check_objects_restored cannot recover equality, so a correct cancellation or rollback fails verification. The immediate exact count in test_insert_select_replicated has the same dependency. Before the fixture yields, execute SYSTEM WAIT BLOBS CLEANUP 's3_cache' on all three nodes; this also waits for the underlying s3 disk. Existing unresolved thread.
Tests
  • ⚠️ At review time, the CI workflow for head 3e06aa2a remains pending. Fast test passed, but the integration jobs have no published test results yet. Obtain results for the affected integration modules, including test_replicated_merge_tree_s3 after fixing its fixture. No local tests were run, as required for this CI review.
Final Verdict

Status: ⚠️ Request changes

Drain startup cleanup before taking replicated S3 object baselines, and obtain the affected integration-test results.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Nov 20, 2026
@Diskein Diskein self-assigned this Nov 20, 2026
clickhouse-gh[bot]
clickhouse-gh Bot previously approved these changes Nov 20, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-object-storage-disks Object-storage disk layer: DiskObjectStorage, metadata storage adapters, transaction support for ... label Nov 20, 2026
@clickhouse-gh
clickhouse-gh Bot dismissed their stale review November 20, 2026 16:05

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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.

@Michicosun
Michicosun enabled auto-merge November 24, 2026 12:04
@Michicosun
Michicosun added this pull request to the merge queue Nov 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 24, 2026
…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]>
@Michicosun
Michicosun enabled auto-merge November 24, 2026 16:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-object-storage-disks Object-storage disk layer: DiskObjectStorage, metadata storage adapters, transaction support for ... pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants