Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-44500

Create a new ShardVersionMap that includes references to specific shards.

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2020-01-13

      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

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            blake.oler@mongodb.com Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: