[SERVER-44500] Create a new ShardVersionMap that includes references to specific shards. Created: 08/Nov/19  Updated: 29/Oct/23  Resolved: 10/Jan/20

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

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

Issue Links:
Depends
depends on SERVER-44587 Modify StaleConfigInfo to take in and... Closed
Gantt Dependency
has to be done before SERVER-44501 Modify the RoutingTableHistory to che... Closed
has to be done after SERVER-44498 Create a flag on the OperationContext... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-01-13
Participants:

 Description   

Feature Work

This will be in the format <ShardId, pair<atomic bool, ChunkVersion>>, where the bool indicates whether we’ve received StaleShardVersion (SSV) from this particular shard. When a router receives SSV for a shard, it will flip the atomic boolean to true. We don’t need to worry about setting false, because when the routing table needs to be updated, it gets created from scratch. We will keep the old ShardVersionMap for now — the new ShardVersionMap will be fully functional but we will not use it in connection with other pieces yet.

Testing Work

Create unit tests to verify that receiving SSV will appropriately modify the new ShardVersionMap



 Comments   
Comment by Githook User [ 09/Jan/20 ]

Author:

{'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'}

Message: SERVER-44500 Create a new ShardVersionMap that includes references to specific shards
Branch: master
https://github.com/mongodb/mongo/commit/9cc6478f77febe70b10742e0e92514942936bef3

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