Skip to content

Flaky: the_status_read_under_the_lock_keeps_it_through_a_long_scan stops on its 300 ms idle limit #989

Closed

Description

@LeeroyHannigan

the_status_read_under_the_lock_keeps_it_through_a_long_scan in crates/storage-mongodb/tests/migrations_holders.rs fails some CI runs. The migrate run after the status read stops with Store("the migration made no progress for 0 s, so this process stopped renewing the migration lock; nothing more is applied").

Run that failed:

The test sets an idle_limit of 300 ms and a renew_every of 100 ms for the lock. The renewal task stops renewing the lock when the migration records no progress for one idle limit. So the test fails when the migration records no progress for 300 ms on the runner. The production idle limit is 30 s.

The message prints the idle time in whole seconds (idle_for().as_secs()), so an idle time under one second reads as "0 s". Only a test sets an idle limit under one second.

Proposed fix: give the test an idle limit with room for a loaded runner, for example 2 s. Then add users until the status read still takes more than two idle limits, which the test asserts at line 155. A test clock for the idle check would also remove the dependency on the runner's speed.

Activity

  1. self-assigned this
    on Nov 19, 2026
  2. added a commit that references this issue on Nov 23, 2026
    8c64333
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions