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

Improve closing connection behavior when stepping down from primary

    XMLWordPrintable

    Details

      Description

      There is a race of tagging and closing connections when stepping down. After the connection is established but before it gets tagged, there's a small window where the connection may be closed on stepdown.

      We could fix this by having internal connections tagged in other ways than _isMaster for every incoming connections (maybe logical session?), or only hanging up connections that have locked the database / issued any commands, or not hanging up connections at all but instead just returning a stepdown error.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              siyuan.zhou Siyuan Zhou
              Reporter:
              siyuan.zhou Siyuan Zhou
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: