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

Add retry logic for name resolution failure in isSelf

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Repl 2019-03-25
    • 135

      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.

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            jason.chan@mongodb.com Jason Chan
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: