assert.commandWorked() should fail when a getLastError hits wtimeout

XMLWordPrintableJSON

    • Server Tooling & Methods
    • ALL
    • 18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      For backward compatibility reasons the getLastError command returns ok: 1.0 when it hits wtimeout.

      Because of this the assert.commandWorked() utility does not throw an exception when it happens. It should use the error code or message to detect the failure in this case.

            Assignee:
            Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            Yves Duhem (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: