query_with_txn_prepared.js should relax document count check

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • 3
    • 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
            Reporter:
            Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: