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

find command checks for shard version outside of collection lock

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • ALL

    Description

      The implementation of find command on mongod checks the shard version outside of collection lock. This means that the collection might change after it has been checked, but before the command actually starts returning results and thus it may return results, which do not belong to the shard being queried.

      This should be easy to fix by moving the collection lock up.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: