[SERVER-69180] Split and Merge commands need to refresh filtering metadata before checking preconditions Created: 26/Aug/22  Updated: 29/Oct/23  Resolved: 30/Aug/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 6.1.0-rc1, 6.2.0-rc0
Fix Version/s: 6.1.0-rc1, 6.2.0-rc0

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.1
Sprint: Sharding EMEA 2022-09-05
Participants:
Linked BF Score: 35

 Description   

As part of SERVER-68485, we stopped sending the shard version in split and merge commands and instead checked the preconditions of the commands outside of the shard versioning protocol (similar to what is done in move chunks). However, if the filtering information is stale, the StaleConfigInfo will contain ShardVersion::IGNORED and the shard will not refresh, even if the shard is actually staler than the router.
One way to solve this would be to add a call to onShardVersionMismatch before the metadata checks in split and merge, similar to what is done in move chunk.



 Comments   
Comment by Githook User [ 05/Sep/22 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-69180 Split and Merge commands need to refresh filtering metadata before checking preconditions

(cherry picked from commit 3f101399b8b165cb1e3a70bd56d9be7978124f51)
Branch: v6.1
https://github.com/mongodb/mongo/commit/6863b640032e056b25fa8a1ea328b9f07cda4977

Comment by Githook User [ 30/Aug/22 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-69180 Split and Merge commands need to refresh filtering metadata before checking preconditions
Branch: master
https://github.com/mongodb/mongo/commit/3f101399b8b165cb1e3a70bd56d9be7978124f51

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