Make splitChunk and moveChunk commands interpret and check the chunkVersion field

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.4.0-rc3
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2016-10-10, Sharding 2016-10-31, Sharding 2016-11-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      This ticket is the shard-side counterpart of SERVER-25527. We should change the logic of splitChunk and moveChunk to check for the presence of the chunkVersion field as part of the request and if it is present to ensure that the chunk being changed has the matching version instead of just checking the collection version.

      This is necessary in order to be able to get rid of the collection distributed lock during these operations and to make them idempotent.

            Assignee:
            Kaloian Manassiev
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: