find command checks for shard version outside of collection lock

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: