[SERVER-47645] Must invalidate all sessions on step down Created: 17/Apr/20 Updated: 29/Oct/23 Resolved: 29/Jul/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.1, 4.7.0, 4.2.10 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Matthew Russotto | Assignee: | Tess Avitabile (Inactive) |
| 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 | ||||||||||||||||||||||||
| Backport Requested: |
v4.4, v4.2
|
||||||||||||||||||||||||
| Sprint: | Repl 2020-05-18, Repl 2020-06-01, Repl 2020-08-10 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Linked BF Score: | 26 | ||||||||||||||||||||||||
| Description |
|
If we abort a transaction on a primary, we may never have written anything durably about it. If we step down, we must forget about all aspects of this transaction, including the transaction number (which may be re-used on the new primary). This means we must not just abort transactions in progress, but also invalidate all sessions, on stepdown. We should also invariant in beginOrContinueTransactionUnconditionally, when we are attempting to start the same transaction number as already exists on the participant, but that transaction number is not in progress. |
| Comments |
| Comment by Githook User [ 27/Aug/20 ] |
|
Author: {'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}Message: (cherry picked from commit 6cbc99ea5517e481566503bbd6bef95632f2ad25) |
| Comment by Githook User [ 20/Aug/20 ] |
|
Author: {'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}Message: (cherry picked from commit 6cbc99ea5517e481566503bbd6bef95632f2ad25) |
| Comment by Githook User [ 29/Jul/20 ] |
|
Author: {'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}Message: |
| Comment by Githook User [ 09/Jun/20 ] |
|
Author: {'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}Message: Revert " This reverts commit 5f1a69aaf69bc12124f68e7b489a1437f9cdd575. |
| Comment by Githook User [ 09/Jun/20 ] |
|
Author: {'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}Message: Revert " This reverts commit c1bc1b6d6b7b7d216b8243a609f1c7231045e5be. |
| Comment by Tess Avitabile (Inactive) [ 09/Jun/20 ] |
|
I'm patch-building reverts of the above two commits, while we work on a solution forĀ |
| Comment by Githook User [ 05/Jun/20 ] |
|
Author: {'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}Message: (cherry picked from commit 5f1a69aaf69bc12124f68e7b489a1437f9cdd575) |
| Comment by Githook User [ 04/Jun/20 ] |
|
Author: {'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}Message: |