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

ReplSetMonitor::getHostOrRefresh should not do anything if maxWait <= 0

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.7
    • None
    • Networking, Replication
    • None
    • Fully Compatible
    • Service Arch 2018-12-31

    Description

      There's a TODO here with no corresponding ticket.

      The getHostOrRefresh function is used in shard targeting, including from a function "findHostNoWait". The expectation for that function is that no waiting happens, even on error. Instead, we spawn an extra thread anyways even though we know we won't retry.

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: