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

Delete existing chunks on new epoch in persisted routing table cache

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2019-07-29, Sharding 2019-08-12
    • 16

      Currently the shard server catalog cache loader will not clear existing chunks after detecting a new epoch if the new version of the collection has a different shard key, relying on an earlier refresh discovering the collection was dropped and dropping the cached chunks collection then. Refining a collection's shard key will change its epoch without dropping it first, so the class should be modified to delete all existing chunks in a collection's cache after detecting a new epoch and it should be verified that the new shard key is correctly propagated through to the in-memory routing table's refresh.

            Assignee:
            jamie.heppenstall@mongodb.com James Heppenstall (Inactive)
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: