[SERVER-65294] Speed up replset tenant_migration_* tests Created: 06/Apr/22  Updated: 04/May/22  Resolved: 04/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Daniel Gottlieb (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-66027 Speedup tenant migration JS tests Closed
Participants:

 Description   

There are multiple tenant_migration_*.js tests under the replica sets suite take 10+ minutes. As these tests run a tenant migration hundreds of times surrounding individual user commands, any savings on how long it takes to run a tenant migration can add up.

One observed deficiency is that each tenant migration takes a minimum of 5 seconds to run. There's a problem where majority read concern tailable awaitdata cursors don't return when their first document is ready, but rather when the maxTimeMs is satisfied (default 5 seconds based on the election timeout). Addressing that unnecessary cost alone saves ~10 minutes on every run of tenant_migration_concurrent_writes_on_donor.js.

This ticket should also audit other codepaths to make sure tests are running as expected.


Generated at Thu Feb 08 06:02:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.