retryable_writes_mmap.js should use assert.commandFailedWithCode

XMLWordPrintableJSON

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

      SERVER-31335 changed the behavior of some assert.js helpers, and as a result, retryable_writes_mmap.js fails to find an expected error code because it is returned as a WriteCommandError, but the test is using assert.writeErrorWithCode, which now ignores that class of errors. The test should be updated to use assert.commandFailedWithCode instead.

            Assignee:
            Jack Mulrow
            Reporter:
            Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: