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

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

    XMLWordPrintable

Details

    • ALL
    • 18

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
              yves.duhem Yves Duhem
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: