[SERVER-76403] Wait for shard to have a primary before doing a migration in migration_recovers_unfinished_migrations.js Created: 21/Apr/23  Updated: 29/Oct/23  Resolved: 24/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.0.0-rc0
Fix Version/s: 7.0.0-rc0, 7.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Silvia Surroca Assignee: Silvia Surroca
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-74177 balancer_commands_scheduler wraps ret... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Sharding EMEA 2023-05-01
Participants:
Linked BF Score: 154

 Description   

In the migration_recovers_unfinished_migrations.js test there is a stepUp and then a moveChunk is called in a parallel shell.
If the source shard is still executing the step up process, the moveChunk command will fail with a NotWritablePrimary and won't be retried due to SERVER-74177, therefore the test will fail.

The purpose of this ticket is to wait for the primary to reach a steady state before resuming the moveChunk command.



 Comments   
Comment by Githook User [ 24/Apr/23 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-76403 Wait for shard to have a primary before doing a migration in migration_recovers_unfinished_migrations.js
Branch: v7.0
https://github.com/mongodb/mongo/commit/c3ffc97c77aaa04b1e3f97ba32328c27de1c3e49

Comment by Githook User [ 21/Apr/23 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-76403 Wait for shard to have a primary before doing a migration in migration_recovers_unfinished_migrations.js
Branch: master
https://github.com/mongodb/mongo/commit/3b0b9f10303c8ab732d39489cee4b806634e742a

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