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

Refine the expected errors on each DDL operation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: Backlog
    • Fix Version/s: Backlog
    • Component/s: Sharding
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding EMEA 2021-05-17

      Description

      When executing a DDL, 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

          Activity

            People

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

              Dates

              Created:
              Updated: