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

Retry NotPrimaryError and ShutdownError categories when commiting in the new create collection path

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0
    • Component/s: Sharding
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 2021-04-05

      Description

      On the new create collection path if we find a NotPrimaryError or a ShutdownError category we bubble up the exception to the router, however, given the fact that we're working on the DDLCoordinator and we're handling this behavior on the completion of the operation, it is better to handle it locally on the _commit function, leveraging that we made the writes to the config server idempotent operations. We could for example use a retryable write, or simply adding a loop to always retry if the response is an error of any of the mentioned categories.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marcos.grillo Marcos José Grillo Ramirez
              Reporter:
              marcos.grillo Marcos José Grillo Ramirez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: