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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • 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
            Reporter:
            Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: