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

Fail MoveChunk if an index is needed on TO shard and data exists

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.6, 2.7.6
    • Component/s: Indexing, Sharding
    • Labels:
    • Backwards Compatibility:
      Minor Change
    • Backport Completed:

      Description

      During a moveChunk we ensure all indexes from the source shard. This makes sense if the collection is new or already has all the indexes (since it is a no-op) but in the case of different indexes a movechunk can degrade performance and block other operations because of the "new" indexes.

      It is therefore an improvement to make the operation fail because of the missing index(es) rather than add load and affect performance and availability of the destination shard.

      See https://github.com/mongodb/mongo/blob/v2.4/src/mongo/s/d_migrate.cpp#L1660 for the 2.4.x (currently the same in 2.5.x) behavior.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                6 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: