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

query_with_txn_prepared.js should relax document count check

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • v8.0, v7.0, v6.0
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We're not performing a readConcern: {level: 'snapshot'} read, it's possible for the following to happen:

      Thread 1: insert document _id: 1
      Thread 2: run find. find finds one document, and yields if the query has taken some time already (this could happen due to slowness)
      Thread 1: deletes document _id: 1. It re-inserts _id: 1
      Thread 2: wakes up and finds the second document. It returns two documents (one was found earlier).

            Assignee:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Reporter:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None