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

Tag internal connections KeepOpen to avoid closing on stepdown

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.3.9
    • Replication
    • None
    • Fully Compatible
    • v3.2
    • Repl 16 (06/24/16)
    • 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

              siyuan.zhou@mongodb.com Siyuan Zhou
              siyuan.zhou@mongodb.com Siyuan Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: