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

Tag internal connections KeepOpen to avoid closing on stepdown

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.9
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.2
    • Sprint:
      Repl 16 (06/24/16)
    • Linked BF Score:
      0

      Description

      Currently, connections that are subjected to closing on stepdown are tagged in command::run(), this leaves the gaps before and after command::run() where closing could happen. Also, we have to consider retry if commands may hit the old primary during its stepping down.

      Instead, this ticket suggests tagging all internal connections at the very beginning of establishing connections with an isMaster() call. We can add an extra field to isMaster to specify internal use so that servers may tag these connections KeepOpen.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: