[SERVER-21456] Improve closing connection behavior when stepping down from primary Created: 13/Nov/15 Updated: 03/Nov/19 Resolved: 28/Nov/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.3, 3.7.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Siyuan Zhou | Assignee: | Siyuan Zhou |
| Resolution: | Done | Votes: | 0 |
| Labels: | bkp, todo_in_code | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||||||
| Backport Requested: |
v3.6, v3.4
|
||||||||||||||||||||||||||||||||||||||||
| Sprint: | Repl 2017-12-04 | ||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||
| Linked BF Score: | 19 | ||||||||||||||||||||||||||||||||||||||||
| 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. |
| Comments |
| Comment by Githook User [ 12/Jan/18 ] |
|
Author: {'email': 'siyuan.zhou@mongodb.com', 'name': 'Siyuan Zhou', 'username': 'visualzhou'}Message: (cherry picked from commit b7c69773419d69237f932ac7cc8b48661f593efe) |
| Comment by Githook User [ 28/Nov/17 ] |
|
Author: {'name': 'Siyuan Zhou', 'username': 'visualzhou', 'email': 'siyuan.zhou@mongodb.com'}Message: |