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

assertRetryableCommandWorked should check command results

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc1
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v7.0
    • Sharding EMEA 2023-05-01
    • 30

      SERVER-72820 introduced a javascript helper, assertRetyableCommandWorked, which would retry a command automatically on retriable errors until the command succeeded or failed with a non-retriable error.

      SERVER-75999 used this helper throughout the configureFailPoint helper.

      However, it seems that this helper is not actually asserting that the command worked in the try statement. This means that it will never throw and it is actually swallowing errors in the commands it is running.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: