network_error_and_txn_override.js doesn't always retry commands that fail with FailedToSatisifyReadPreference error

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding NYC 2023-04-03
    • 162
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The code for triggering retry is shouldRetryWithNetworkExceptionOverride but it is only invoked in this catch block. So if the command runs successfully here but returns a FailedToSatisfyReadPreference error, then it would not get retried.

            Assignee:
            Cheahuychou Mao
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: