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

Assert command worked before checking number of docs removed in query/remove/remove_single_document.js

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The test query/remove/remove_single_document.js runs a single delete repeatedly, and makes an assertion on the number of docs removed before actually checking whether the delete was successful. If the test is running a transaction suite and the delete fails, the result object won't contain nRemoved, and we'll swallow the error the request actually failed with, preventing the delete from being retried on transient errors etc.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: