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

add cmdObj to runClientFunctionWithRetries() log message for tests

    • Fully Compatible
    • STM 2021-08-23
    • 19
    • 1

      In the logs for retryable writes passthrough tests, the following is a sample log message for an insert command that is being run again by the runClientFunctionWithRetries() function in session.js:

      [js_test:coveredIndex2] [jsTest] Retrying insert due to retryable error (code=11602), subsequent retries remaining: 2
      

      For base tests that may have multiple instances of the same command that may be retried and in the absence of additional context in the logs, this can take some guesswork to figure out which command is being retried.

      It would be useful for test failure analysis to be able to include more of the command object (taking into redaction) in the retry log message.

            Assignee:
            siran.wang@mongodb.com Siran Wang (Inactive)
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: