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

Add whitelist of errors that will not be retried on rename collection path

    XMLWordPrintable

Details

    • Fully Compatible
    • v5.0
    • Sharding EMEA 2021-05-31

    Description

      When executing a rename collection, there are some expected errors where we don't want them to be retried, so the idea is to encapsulate the exception somehow to have something like the following:

      try {
          ...<code> ...
      } catch (const ExpectedException& ex) {
          throw NonRetriableException(ex);
      }
      

      This way we have a declarative way to tell the DDL coordinator will not retry this time because it is an expected error.

      Attachments

        Issue Links

          Activity

            People

              marcos.grillo@mongodb.com Marcos José Grillo Ramirez
              tommaso.tocci@mongodb.com Tommaso Tocci
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: