-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
Fully Compatible
-
v3.6, v3.4
-
Repl 2017-12-04
-
19
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.
- related to
-
SERVER-31265 Do not terminate connections on endAllSessions that have just been accepted and their tags have not been set yet
- Closed
-
SERVER-24574 Tag internal connections KeepOpen to avoid closing on stepdown
- Closed
-
SERVER-42557 Complete TODO listed in SERVER-21456
- Closed
-
SERVER-43512 Complete TODO listed in SERVER-21456
- Closed
-
SERVER-44228 Complete TODO listed in SERVER-21456
- Closed
-
SERVER-44336 Complete TODO listed in SERVER-21456
- Closed
-
SERVER-44386 Complete TODO listed in SERVER-21456
- Closed