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

Chunk metadata cache updates on the primary must be written to config.chunks.ns

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.4
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2017-02-13, Sharding 2017-03-06

      Shard primaries refresh their chunk metadata by querying the config server for new metadata, and then creating and setting a new CollectionMetadata object. Usually the new CollectionMetadata object is based off of the old CollectionMetadata object, but if the CollectionMetadata was previously cleared then the query will retrieve all the chunk metadata and make an entirely new CollectionMetadata object with the results. The ConfigDiffTracker::calculateConfigDiff function applies the new chunk metadata queried from the config server to the new CollectionMetadata object.

      From now on, the primary must read from and write to admin.chunks. In-memory cached chunk metadata manipulations, via CollectionMetadata or ConfigDiffTracker methods, should correspondingly do writes to the admin.chunks collection.

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: