[SERVER-59007] Ensure transactions not holding RSTL are killed on step up / step down Created: 02/Aug/21  Updated: 06/Dec/22  Resolved: 02/Aug/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Xuerui Fa Assignee: Backlog - Replication Team
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-50486 invokeWithSessionCheckedOut being cal... Closed
Assigned Teams:
Replication
Operating System: ALL
Participants:

 Description   

In SERVER-50486, we discovered a race where a primary may step down, attempt to call invokeWithSessionCheckedOut in a user thread, and eventually hit a MONGO_UNREACHABLE invariant due to a race.

SERVER-50486 addressed this by setting the setAlwaysInterruptAtStepDownOrUp flag on the opCtx . It seems like this issue is still occurring, we should investigate more into why a user thread was not killed upon step down.


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