[SERVER-48371] transactions_during_step_down.js must abort transaction in the shell Created: 21/May/20  Updated: 29/Oct/23  Resolved: 26/May/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.2.8, 4.4.0-rc7, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Tess Avitabile (Inactive) 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
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2
Sprint: Repl 2020-06-01
Participants:
Linked BF Score: 12

 Description   

In transactions_during_step_down.js, we start a transaction, which gets aborted by a stepdown. However, since we never abort the transaction in the shell, when the session goes out of scope and garbage collection runs, we run endSession(), which will run abortTransaction against the server. This can hang and lead to deadlock if we are in the process of stopping the ReplSetTest and have fsynclocked the server.



 Comments   
Comment by Githook User [ 26/May/20 ]

Author:

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

Message: SERVER-48371 transactions_during_step_down.js must abort transaction in the shell

(cherry picked from commit ec3fe1a2b7cbf6586b20373fdca1e60dd9e406d4)
Branch: v4.2
https://github.com/mongodb/mongo/commit/ba7d21608131d8236f2c2b66a93c9d6311f8506c

Comment by Githook User [ 26/May/20 ]

Author:

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

Message: SERVER-48371 transactions_during_step_down.js must abort transaction in the shell

(cherry picked from commit ec3fe1a2b7cbf6586b20373fdca1e60dd9e406d4)
Branch: v4.4
https://github.com/mongodb/mongo/commit/29f8ca9ec2fef177f98928ee4c1ec6168db5cf87

Comment by Githook User [ 21/May/20 ]

Author:

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

Message: SERVER-48371 transactions_during_step_down.js must abort transaction in the shell
Branch: master
https://github.com/mongodb/mongo/commit/ec3fe1a2b7cbf6586b20373fdca1e60dd9e406d4

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