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

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

    • Server Tooling & Methods
    • ALL
    • 18

      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-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            yves.duhem Yves Duhem
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: