Tag internal connections KeepOpen to avoid closing on stepdown

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.9
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • v3.2
    • Repl 16 (06/24/16)
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Siyuan Zhou
            Reporter:
            Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: