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

NewOplogFetcher should check for shutdown before retrying the initial connection

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.4
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2020-02-24

    Description

      In NewOplogFetcher::_connect, if connect/auth fails, it depends on _oplogFetcherRestartDecision->shouldContinue to determine whether it should retry the connection. During initial sync, shouldContinue always return true for network errors. This means, the while loop in _connect() is effectively an infinite loop during initial sync. This is fine but it should honor the shutdown signal. And it would be better to backoff a bit on retries.

      Attachments

        Activity

          People

            lingzhi.deng@mongodb.com Lingzhi Deng
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: