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

Retry on FailedToSatisfyReadPreference errors in the add remove shard hook

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • 0

      To run in suites with forced failovers, the add remove shard background hook will retry the commands it runs on expected retryable errors, e.g. here for the balancerStop command. This is based on a list of errors gathered from the driver spec, which does not include FailedToSatisfyReadPreference. For commands that run on mongos against the config server, if the config server is frequently failed over, they can fail with that error, so to avoid failures, we should make the hook retry on FailedToSatisfyReadPreference.

            Assignee:
            henri.nikku@mongodb.com Henri Nikku
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: