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

All CollectionMetadata functions that erase/add a chunk must be called through the MetadataManager

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Sharding

      The MetadataManager must see every chunk range change (add/remove) to the active CollectionMetadata it maintains because the MetadataManager will be responsible for initiating range deletion and must maintain an accurate rangesToClean data structure.

      For example, currently the MigrationSourceManager calls CollectionMetadata::cloneMigrate with the ScopedCollectionMetadata it gets from the MetadataManager. The MetadataManager does not currently update its rangesToClean when this happens.

      Note: We may need to implement this, but temporarily comment out the line that actually adds/removes the range from rangesToClean. Until the the new CollectionRangeDeleter is committed and replaces the current RangeDeleter, the rangesToClean data structure would just grow larger and larger and never be reduced by a CollectionRangeDeleter.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: