[SERVER-40504] Check for interruption before checking for stepdown in awaitReplication() Created: 05/Apr/19 Updated: 29/Oct/23 Resolved: 08/Apr/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.10 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Siyuan Zhou | Assignee: | Siyuan Zhou |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Sprint: | Repl 2019-04-22 | ||||
| Participants: | |||||
| Linked BF Score: | 22 | ||||
| Description |
|
In awaitReplication(), interruption should be checked before stepdown, so that the write operations interrupted during stepdown will definitively return an InterruptedDueToStepDown error. Currently, PrimarySteppedDown may also be returned depending on the race between the stepdown and the write. |
| Comments |
| Comment by Githook User [ 08/Apr/19 ] |
|
Author: {'name': 'Siyuan Zhou', 'username': 'visualzhou', 'email': 'siyuan.zhou@mongodb.com'}Message: |