[SERVER-53683] Await configRS optime replication before stopping replication in refine_collection_shard_key_abort_on_stepup.js Created: 11/Jan/21  Updated: 29/Oct/23  Resolved: 13/Jan/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 4.9 Required
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-01-25
Participants:
Linked BF Score: 14

 Description   

In order to perform this refineCollectionShardKey, the shard will try to refresh the collection information from the configsvr using majority read concern and nearest preference. This could fail if the shard tries to refresh from the configsvr secondary that has replication stopped, as it could not satisfy the read concern.

Currently the refine_collection_shard_key_abort_on_stepup.js test is only awaiting replication before sharding the collection. Later the collection is sharded and then replication stops on the configsvr secondary, with may not have replicated it.

The proposal is to introduce an awaitReplication() call after the shardCollection.



 Comments   
Comment by Githook User [ 12/Jan/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-53683 Disable pinger threads that reach out to config server to make refine_collection_shard_key_abort_on_stepup.js pass
Branch: master
https://github.com/mongodb/mongo/commit/9a32ea06f78c2dd7219506b19d164dcb5e7eaa34

Comment by Githook User [ 11/Jan/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-53683: Await configRS optime replication before stopping replication in refine_collection_shard_key_abort_on_stepup.js
Branch: master
https://github.com/mongodb/mongo/commit/69ff284997164b653421175dd0d76de8e5e1f310

Generated at Thu Feb 08 05:31:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.