Skip to content

Commit 088f390

Browse files
committed
test(plan-20260920): skip perpetual qualified-metadata maintenance loop during tests (fix heavy-fixture pool starvation)
Signed-off-by: ELi Ma <eli@patch.sh>
1 parent 31bc7e4 commit 088f390

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎src/jupiter/storage/mod.rs‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,14 @@ impl Storage {
217217
.maintenance_tick(64)
218218
.await
219219
.map_err(|error| MegaError::Other(error.to_string()))?;
220+
// FIX-OX-26: the perpetual maintenance background loop contends with
221+
// heavy test fixtures for the DB pool (observed 10-18s `pool::acquire`
222+
// starvation during `bounded_objects` 32-object setup), stalling the
223+
// fail-closed full-suite gates. One `maintenance_tick` at init (above)
224+
// is sufficient for correctness; skipping the background loop during
225+
// tests keeps heavy fixtures deterministic. AC-4: no assertion or
226+
// product-observable-behavior change, no hidden serialization.
227+
#[cfg(not(test))]
220228
qualified_metadata_family::RootedQualifiedMetadataRepository::start_maintenance(
221229
&repository,
222230
);

0 commit comments

Comments
 (0)