Repository navigation
Skip startup access check for s3 disks in test_storage_delta_disks (fix flaky test_single_log_file) - #110300
Conversation
The session-scoped started_cluster fixture flakily times out because a server node aborts during metadata loading: the s3 disks run a startup access check that writes and reads back a probe object, and under the concurrent 3-node TSAN startup burst MinIO intermittently answers that single write with a transient 403 AccessDenied (signature/time-skew retry). The identical-cred sibling s3 disks pass their checks moments earlier, so it is a transient race, not a config error. The failed session fixture then cascades to all 8 test_single_log_file parameterizations as instant setup errors. Skip the startup access check for the s3 disks, mirroring the azure disks in the same config that already set skip_access_check=true. The disks are still fully exercised by the DeltaLake tests themselves. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-5:20260713-173800 |
|
cc @kssenii - could you review? Test-only fix: skip the startup s3 access check in test_storage_delta_disks (transient MinIO 403 during concurrent TSAN cluster startup was aborting the session fixture), mirroring the azure disks in the same config. |
|
Workflow [PR], commit [5a03f97] Summary: ✅ AI ReviewSummaryThis PR adds Missing context / blind spots
Final Verdict
|
CI finish ledger — 5a03f97CI fully finished (Finish Workflow SUCCESS, Mergeable Check SUCCESS). No failing tests in CIDB for this head; no PR-caused failures. Only the private
Session id: cron:our-pr-ci-monitor:20260713-230000 |
|
Probably excessive, but does not harm. |
…ks-s3-skip-access-check Skip startup access check for s3 disks in test_storage_delta_disks (fix flaky test_single_log_file)
Both servers of the module (`instance` and `instance_local_metadata`, the second added in 88a9fbd) load `configs/backups.xml` and run the `IDisk::startup` access check of `backup_disk_s3_plain` (PUT, GET, DELETE of `clickhouse_access_check_<uuid>`) at the same time, in the same fresh MinIO prefix `root/data/disks/disk_s3_plain/` that holds nothing but the two probes. MinIO's DELETE removes the object directory and then every now-empty parent (`cmd/xl-storage.go`, `deleteFile`), while the other server's PUT creates the same parents in `RenameData -> renameAll -> reliableRename -> reliableMkdirAll` (`cmd/os-reliable.go`). When a parent is removed between its EEXIST and the child's mkdir, `os.Mkdir` returns an ENOENT PathError, and `renameAll` classifies it with `isSysErrPathNotFound` (non-Windows branch is `pathErr.Err == ENOENT`, `cmd/xl-storage-errors.go`) as `errFileAccessDenied`, i.e. `403 AccessDenied`, even for the root user. The code is unchanged in the latest pgsty/silo release. In the failing job (PR ClickHouse#123069, amd_llvm_coverage 6/8) the denied PUT was sent at 14:11:26.619465 and failed at .624049, 0.47 ms after `instance`'s DELETE of its own probe completed (.622793-.623583); the server exited and all 14 tests failed in `start_cluster`. Two clients doing the same PUT/GET/DELETE against the same MinIO image locally got 7 and 13 AccessDenied PUTs in two 120 s runs with an empty prefix, and 0 of 49876 with one extra object keeping the prefix non-empty. With `skip_access_check` neither server writes to MinIO at startup; the disk is still used by every BACKUP/RESTORE in the module. Same remedy as ClickHouse#110300 and ClickHouse#110592. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Changelog category (leave one):
Description
Fixes flaky
test_storage_delta_disks/test.py::test_single_log_file(seen onIntegration tests (amd_tsan, 6/6), all 8 parameterizations failing at once). Reported by @alexey-milovidov on #109246 (a play.html-only PR, unrelated to the failure).Root cause: the session-scoped
started_clusterfixture times out incluster.start(). On the affected node the server actually starts, then aborts during metadata loading because diskdisk_s3_0_with_cachefails its startup S3 access check with a transient403 AccessDeniedwhile writing the probe object (key .../user_files/..., MinIO logs "signature check failed ... time skew ... Attempting to adjust the signer", one retry, then gives up). The identical-cred sibling disksdisk_s3_0_common/disk_s3_1_commonpass their access checks ~80 ms earlier on the same MinIO, so this is a transient race during the concurrent 3-node TSAN startup burst, not a credentials/config error. The failed session fixture then cascades to all 8test_single_log_fileparameterizations as instant setup errors (first after ~333 s = the start timeout, the rest instantly).Fix: skip the startup access check for the s3 disks, mirroring the azure disks in the same generated config which already set
skip_access_check=true. This removes the single startup write-probe that intermittently gets the 403; the disks remain fully exercised by the DeltaLake tests themselves.Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109246&sha=52be366e5cc6bbd0fe2016d997940ceea424d62f&name_0=PR&name_1=Integration%20tests%20%28amd_tsan%2C%206%2F6%29
Version info
26.7.1.926(included in26.7and later)