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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.2.12
    • 3.2.13
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • 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

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: