Repository navigation
Fix flaky test_storage_iceberg_disks: skip S3 disk startup access check - #110592
Conversation
node2 crashed on startup while loading metadata: the disk_s3_common startup access check (IDisk::startup -> checkAccess) got a transient 403 AccessDenied from MinIO (SigV4 time-skew under concurrent container startup), which is fatal during metadata load, so the server aborted and its TCP port never opened. cluster.start() then timed out waiting for node2 and all 18 module tests ERRORed with 'Timed out while waiting for instance node2 to start'. node1/node3 (no 403) started fine, so it is not shard-wide OOM. Add skip_access_check to the S3 disks (disk_s3_common, disk_s3_with_cache), matching test_storage_delta_disks which already skips the access check on all its disks. The access check is not what these tests exercise. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-0:20260715-162800 |
|
cc @scanhex12 - could you review this? It adds skip_access_check to the S3 disks in test_storage_iceberg_disks so a transient MinIO 403 on the disk startup access probe no longer aborts a node and times out the whole cluster fixture (all 18 tests ERRORing). Mirrors test_storage_delta_disks, which already skips the check. |
|
Workflow [PR], commit [aac9fbc] Summary: ✅ AI ReviewSummaryThis PR adds Final VerdictStatus: ✅ Approve |
CI finish ledger — aac9fbcCI is finished and fully green: Finish Workflow pass, Mergeable Check pass, 0 failed tests (43 pass / 131 skipping; the test-only integration-config change skips most build/test jobs). No failures to own. Session id: cron:our-pr-ci-monitor:20260715-233000 |
|
Interesting, why does Minio behave like that? Looks like some inconsistency. |
…rg-disks-s3-access-check-timeout Fix flaky test_storage_iceberg_disks: skip S3 disk startup access check
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):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Fix the recurring shard-wide
test_storage_iceberg_disks/test.pyfailure where all 18 module tests ERROR withTimed out while waiting for instance 'node2' ... to start(whole cluster fixture never comes up).Root cause, from the node2 server log of the failing run (PR #110078,
Integration tests (amd_asan_ubsan, db disk, old analyzer, 1/6)): node2 crashed during startup while loading metadata. Itsdisk_s3_commonstartup access check (IDisk::startup->checkAccess, a WRITE probe) got a transient403 AccessDeniedfrom MinIO ("time skew ... Attempting to adjust the signer" under concurrent container startup). That access-check failure is fatal during metadata load, so the server aborted ("Caught exception while loading metadata ... While checking access for disk disk_s3_common") and its TCP port never opened.cluster.start()then timed out waiting for node2, ERRORing all 18 tests. node1 and node3 (which did not hit the 403) started normally, so this is not a shard-wide OOM/slow-start.Fix: add
skip_access_checkto the S3 disks (disk_s3_common,disk_s3_with_cache). This matchestest_storage_delta_disks, which already setsskip_access_checkon all of its disks. The startup access probe is not what these tests exercise.Recurrence (CIDB, 30d): the identical exactly-18-tests pattern hit unrelated PRs (#104809 on the same shard on 2026-07-08, #108035, #107566) and master (2026-06-15), with no open tracking issue.
Reported by @alexey-milovidov on #110078 (unrelated to that PR's native ORC reader change).
Version info
26.7.1.1003(included in26.7and later)