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

Add retry logic for name resolution failure in isSelf

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Sprint:
      Repl 2019-03-25
    • Linked BF Score:
      135

      Description

      Currently, isSelf does not contain any retry logic when attempting name resolution. This causes build failures for tests that experience transient network failures.

      We would like to add retry loops to getAddrInfo to reduce these build failures, but it is important that we don't retry forever in case the network failure is indeed not transient (eg. dns misconfiguration).

      This requires threading the opCtx to getAddrInfo and may require some refactoring of unit tests to implement cleanly.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jason.carey Jason Carey
              Reporter:
              jason.chan Jason Chan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: