You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky: the_status_read_under_the_lock_keeps_it_through_a_long_scan stops on its 300 ms idle limit #989
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").
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
test(storage-mongodb): give the locked status read and migration 2 sc…