[SERVER-34011] Concurrency between transaction and other threads that can abort transaction Created: 20/Mar/18  Updated: 29/Oct/23  Resolved: 30/Mar/18

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

Type: Task Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Tess Avitabile (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-33368 Add snapshot read testing for txnNumb... Closed
Related
is related to SERVER-33432 Implicit transaction abort Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2018-04-09
Participants:
Linked BF Score: 55

 Description   

Due to migration, killSession and other implicit transaction abort, multi-statement transaction functions need to consider the concurrency even if the session has been checked out.

If a high txnNumber is received from migration, the current transaction needs to abort. (SERVER-33432)
If migration has the same txnNumber, the current transaction must be in state None (retryable writes).
All accesses to the transaction functions must check the txnNumber and the state at the beginning.



 Comments   
Comment by Githook User [ 30/Mar/18 ]

Author:

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

Message: SERVER-34011 Concurrency between transaction and other threads that can abort transaction
Branch: master
https://github.com/mongodb/mongo/commit/fbbdb5643a3fab20a4c7875830382748a4ba75e4

Comment by Githook User [ 29/Mar/18 ]

Author:

{'email': 'esha.maharishi@mongodb.com', 'name': 'Esha Maharishi', 'username': 'EshaMaharishi'}

Message: Revert "SERVER-34011 Concurrency between transaction and other threads that can abort transaction"

This reverts commit d2acaa1e46744627bc38ad7ad6e786415a6dbc4d.
Branch: master
https://github.com/mongodb/mongo/commit/9a9bc7928429b98ff4967a86235c976ee14b1c86

Comment by Githook User [ 28/Mar/18 ]

Author:

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

Message: SERVER-34011 Concurrency between transaction and other threads that can abort transaction
Branch: master
https://github.com/mongodb/mongo/commit/d2acaa1e46744627bc38ad7ad6e786415a6dbc4d

Generated at Thu Feb 08 04:35:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.