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

assertRetryableCommandWorked should check command results

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc1
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • v7.0
    • Sharding EMEA 2023-05-01
    • 30

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: