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

Migration critical section for one collection will block finds for any other sharded collection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.2.12
    • Fix Version/s: 3.2.13
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 2017-04-17

      Description

      The find command implementation in 3.2 indiscriminately checks for critical section before even looking at the collection's shard version. This causes the migration critical section on one collection to stall find operations for all other collections even if they do not participate in migrations themselves.

      Since in 3.2 there isn't a (non-racy) way to differentiate between the critical sections on one collection versus another, at the very least this check should only be done if shard version mismatch is encountered and not all the time.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: