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

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

    XMLWordPrintable

    Details

    • Operating System:
      ALL
    • Linked BF Score:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: