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

Implement a mechanism to periodically remove useless entries from config.placementHistory

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sharding EMEA
    • Fully Compatible
    • Sharding EMEA 2023-04-03, Sharding EMEA 2023-04-17

      The config.placementHistory collection implements a log of any change affecting the placement of every sharded nss in the cluster (each event is recorded as a separate document); it may therefore grow indefinitely if not periodically pruned.

      On the other hand,

      • a document storing placement information at time T is only useful if each involved shard hasn't pruned any entry with opTime >= T from its oplog
      • such document can be safely removed if config.placementHistory contains at least one more recent entry referencing the same namespace

      Based on such condition, the config server should implement a new mechanism to periodically clean up the content of config.placementHistory

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: