findSelfInConfig should attempt fast path for every HostAndPort before trying slow path

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.4.19, 5.0.15, 6.1.0-rc0, 6.0.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v6.0, v5.0, v4.4, v4.2
    • Repl 2022-09-05
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, when we run findSelfInConfig, the isSelf logic checks the fast path for a specific HostAndPort and uses the slow path if it does not succeed. Ideally, it should run the fast path for all HostAndPorts, and if any of them don't succeed, then we should move on to the slow path. This should speed up the discovery time.

            Assignee:
            Matthew Russotto
            Reporter:
            Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: