Implement chunk checks in checkConsistencyMetadata command

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding EMEA 2023-02-20, Sharding EMEA 2023-03-06, Sharding EMEA 2023-03-20, Sharding EMEA 2023-04-03
    • 162
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      DB primary shard send _configsvrCheckMetadataConsistency(dbName) to the config server to check chunks consistency:

      1. There should be no chunk with empty history.
      2. The shard name in the first element of the history array matches the shard name in the top level of the chunk (code). 
      3. No range gaps -  Chunks must always cover the entire shard key space for a specific collection [minKey, maxKey)
      4. No overlap ranges for chunks

              Assignee:
              Pol Pinol
              Reporter:
              Pol Pinol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: