Skip to content

[Bug]: Rolling restart CN lock tests flaky — TestReLockInRollingRestartCN and related #26374

Closed

Description

@matrix-meow

Problem

Multiple rolling restart CN lock tests fail intermittently:

Test Elapsed
TestClusterCanStartNewCNServices —
TestReLockInRollingRestartCN 1.43s
TestPreTxnLockInRollingRestartCN 1.62s
TestOldTxnLockInRollingRestartCN 7.65s
TestIssue5543 6.76s

All tests involve restarting CN nodes and verifying lock re-acquisition. Under CI load, the CN restart/lock handoff timing causes failures.

Recent Occurrences

Date PR/Run Job
2026-07-29 PR #26366 UT Test on Ubuntu/x86

Related Closed Issues

Suggested Fix

  1. Increase CN restart/lock handoff timeouts for CI
  2. Or add retry logic for transient restart failures
  3. Or use synchronization barriers instead of timing-based waits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions