Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2501

Break NoWritesPerformed-Only Error Sequence

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Implementing
    • Unknown
    • Resolution: Unresolved
    • None
    • Retryability
    • Needed
    • Hide

      Drivers should sync unified retryable-writes spec tests to mongodb/specifications@2051f35.

      Show
      Drivers should sync unified retryable-writes spec tests to mongodb/specifications@2051f35 .

    Description

      In the previous specification for executing retryable writes, there is an edge case where the server only returns errors with the "NoWritesPerformed" error label. If this happens, the following block is unreachable:

            if (originalError is not DriverException && ! originalError.hasErrorLabel("NoWritesPerformed")) {
              previousError = originalError;
            }
      

      In this case, the previousError that will be propagated to the user will be "null". In reality, this routine should propagate the first NoWritesPerformed-labeled error.

      Attachments

        Issue Links

          Activity

            People

              preston.vasquez@mongodb.com Preston Vasquez
              preston.vasquez@mongodb.com Preston Vasquez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: