[SERVER-71690] Implement a new sharding hook to verify the sharding filtering metadata Created: 30/Nov/22  Updated: 29/Oct/23  Resolved: 18/Jan/23

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

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

Issue Links:
Related
is related to SERVER-73988 Disable the dbVersion check on CheckS... Closed
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-12-26, Sharding EMEA 2023-01-09, Sharding EMEA 2023-01-23
Participants:
Story Points: 3

 Description   

This check  was initially part of PM-2030 but we discarded the idea because we could get some false positives reports due to the low guarantees of refineShardKey operation.

The goal of this task is to implement a new sharding hook that it is run at the end of the sharding test and that verifies that what the config server authoritative believes shards own is exactly what shards believe they own. In other words, assuming that we have placement stability (no more operations ongoing (not even moveChunks)), we should verify that the different shard versions that are persisted on config.collections and config.chunks match whatever we have locally in each CollectionShardingRuntime of each shard. 

The getShardVersion command exposes the information on the CSR.

We should have a way to disable it.



 Comments   
Comment by Githook User [ 18/Jan/23 ]

Author:

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

Message: SERVER-71690 Implement a new sharding hook to verify the sharding filtering metadata
Branch: master
https://github.com/mongodb/mongo/commit/c82eaeff371a536180ab1136ae571c706ad6ed68

Comment by Githook User [ 18/Jan/23 ]

Author:

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

Message: SERVER-71690 Implement a new sharding hook to verify the sharding filtering metadata
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/63c0790d1bef5a0dd5451bb4f09be0bf902c7ce6

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