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

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

      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.

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

              Created:
              Updated:
              Resolved: