Ensure there is routing metadata before doing range deletion in moveChunk

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-09-11, Sharding 2017-10-02
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Migration fails to refresh metadata after a successful migration commit because the config server is shutting down. This is logged here. This failed remote metadata refresh causes the chunk metadata to get cleared. However, this code here is returning a successful migration commit status, so the shard moveChunk command continues on to do range deletion like everything is fine. And then MetadataManager::cleanUpRange invariants because there is no chunk metadata.

            Assignee:
            Dianna Hohensee (Inactive)
            Reporter:
            Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: