[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:
Backports
Depends
depends on SERVER-48641 Deadlock due to the MigrationDestinat... Closed
depends on SERVER-48689 MigrationDestinationManager waits for... Closed
Related
related to SERVER-49044 Make AsyncRequestSender not retry rem... Closed
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: SERVER-47645 Must invalidate all sessions on stepdown

(cherry picked from commit 6cbc99ea5517e481566503bbd6bef95632f2ad25)
(cherry picked from commit 5265a96ced48b27c702677d329c32309224e7c4c)
Branch: v4.2
https://github.com/mongodb/mongo/commit/f3dd37fefc13fa11c8717cf574b2bfb5c6b20427

Comment by Githook User [ 20/Aug/20 ]

Author:

{'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}

Message: SERVER-47645 Must invalidate all sessions on stepdown

(cherry picked from commit 6cbc99ea5517e481566503bbd6bef95632f2ad25)
Branch: v4.4
https://github.com/mongodb/mongo/commit/5265a96ced48b27c702677d329c32309224e7c4c

Comment by Githook User [ 29/Jul/20 ]

Author:

{'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}

Message: SERVER-47645 Must invalidate all sessions on stepdown
Branch: master
https://github.com/mongodb/mongo/commit/6cbc99ea5517e481566503bbd6bef95632f2ad25

Comment by Githook User [ 09/Jun/20 ]

Author:

{'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}

Message: Revert "SERVER-47645 Must invalidate all sessions on stepdown"

This reverts commit 5f1a69aaf69bc12124f68e7b489a1437f9cdd575.
Branch: master
https://github.com/mongodb/mongo/commit/63572d7f6f3b84c7d65f3bd3fe62c7ccbcc42db0

Comment by Githook User [ 09/Jun/20 ]

Author:

{'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}

Message: Revert "SERVER-47645 Must invalidate all sessions on stepdown"

This reverts commit c1bc1b6d6b7b7d216b8243a609f1c7231045e5be.
Branch: v4.4
https://github.com/mongodb/mongo/commit/8b20e37d7164c8112b6173fc953031a39b59b3c0

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Ā SERVER-48641.

Comment by Githook User [ 05/Jun/20 ]

Author:

{'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}

Message: SERVER-47645 Must invalidate all sessions on stepdown

(cherry picked from commit 5f1a69aaf69bc12124f68e7b489a1437f9cdd575)
Branch: v4.4
https://github.com/mongodb/mongo/commit/c1bc1b6d6b7b7d216b8243a609f1c7231045e5be

Comment by Githook User [ 04/Jun/20 ]

Author:

{'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}

Message: SERVER-47645 Must invalidate all sessions on stepdown
Branch: master
https://github.com/mongodb/mongo/commit/5f1a69aaf69bc12124f68e7b489a1437f9cdd575

Generated at Thu Feb 08 05:14:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.