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

ReplCoordinatorImpl invokes forwardSlaveProgress unnecessarily while primary

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.8.0-rc0
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL

    Description

      Forwarding slave progress has the effect of waking up the sync source feedback thread, but when a node is primary, it has no sync source and so doesn't need to wake up that thread. Doing it leads to extra context switching and unproductive code execution, which can slow down heavily loaded nodes.

      Attachments

        Activity

          People

            schwerin@mongodb.com Andy Schwerin
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: