Repository navigation
Shrink test 03100_lwu_57_lock_acquire_timeout - #125004
Conversation
The test checks that `lock_acquire_timeout` bounds the wait for the lightweight update lock in Keeper, across several modes, using server-global failpoints and deliberate lock holds. This is a narrow setting check, but it is the third slowest test (about 117 seconds) in `Stateless tests (arm_asan_ubsan, azure, sequential)`, and that job has started hitting its timeout. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [9bb9523] Summary: ✅ AI ReviewSummaryThis PR shrinks Final Verdict
|
…stead of removing it Restore the test with only the cheap arms that still cover the replicated lightweight update lock: the 1 s `lock_acquire_timeout` arm and the cancellation-in-wait arm in 'auto' mode, and the `ZBADVERSION` retry via `patch_parts_lock_pause_before_cas`. The `sync` and plain-`MergeTree` matrix, the long-hold and churn/watch arms are dropped. It runs in about 7 s in a release build and is no longer tagged `long`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🕵 The |
|
🕵 The only failure in the last run is the job-level timeout of |
…k_acquire_timeout` Restore the cheap arms that cover the lightweight update lock paths the reduced test had dropped: - the 1 s `lock_acquire_timeout` arm also in Keeper `sync` mode (`getLockForSyncMode`); - the single-chunk cancellation arm (`lock_acquire_timeout = 2.5`, `max_execution_time = 2`) in both Keeper modes and in both modes of a plain `MergeTree` (`PlainLightweightUpdatesSync::lockSyncMutex` / `lockColumns`), which catches cancellation arriving in the final chunk of `waitInterruptibly` and replaces the multi-chunk cancellation arm; - the multi-chunk watch arm, with a hold of exactly three chunks, which checks that the watch on the conflicting update's node is registered once rather than per chunk. The long-hold, huge-timeout, zero-timeout and churn arms stay removed. The test takes about 28 s in a release build instead of about a minute originally. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…57_lock_acquire_timeout` The single-chunk arms only exercise the `checkTimeLimit` after the loop in `waitInterruptibly`. A waiter with `max_execution_time = 2` and `lock_acquire_timeout = 20` is interrupted by the check at the top of the second iteration, about 3 s in; without that check it would wait out the 20 s lock timeout. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Shrink
03100_lwu_57_lock_acquire_timeout. It checks thatlock_acquire_timeoutand cancellation bound the wait for the lightweight update lock. It used server-global failpoints and deliberate lock holds, and was 605 lines long.It took about 117 s (median) in
Stateless tests (arm_asan_ubsan, azure, sequential), making it the third slowest test in that job. The job has started hitting its 9000 s timeout on master (7 of 22 runs on 2026-10-09).The reduced test keeps one cheap arm per wait path:
lock_acquire_timeoutarm in Keepersyncandautomodes;lock_acquire_timeout = 2.5,max_execution_time = 2) in both Keeper modes and in both modes of a plainMergeTree;lock_acquire_timeout = 20,max_execution_time = 2), interrupted between chunks ofwaitInterruptibly;waitInterruptibly);ZBADVERSIONbackoff viapatch_parts_lock_pause_before_cas/PatchesAcquireLockBadVersionRetries.It drops the long-hold, huge-timeout, zero-timeout and churn arms, and the per-mode multi-chunk cancellation arms. The test now runs in about 31 s in a release build and is no longer tagged
long.Related: #125003
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/125004]
Version info
26.10.1.2134-master(included in26.10and later)