[SERVER-42398] abortTransaction and commitTransaction commands should not acquire ticket irrespective of the prepared state. Created: 24/Jul/19  Updated: 29/Oct/23  Resolved: 25/Jul/19

Status: Closed
Project: Core Server
Component/s: Replication, Storage
Affects Version/s: None
Fix Version/s: 4.2.0-rc5, 4.0.13, 4.3.1

Type: Task Priority: Major - P3
Reporter: Suganthi Mani Assignee: Suganthi Mani
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-41980 Non-transactional commands can deadlo... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2, v4.0
Sprint: Repl 2019-07-29
Participants:

 Description   

Currently, if a transaction is prepared, we don't acquire ticket due to SERVER-41980. We have ticketing mechanism to throttle readers and writers from overwhelming the storage resources. Also, when a ticket is acquired, it indicates that the operation/cmd is going to acquire more storage resources. But, both abortTransaction and commitTransaction cmd are not going to acquire any more storage resources (except writing to oplog) instead they are going to release the storage resources. So, to have a general solution, abortTransaction and commitTransaction commands should not acquire ticket.



 Comments   
Comment by Githook User [ 28/Aug/19 ]

Author:

{'email': 'suganthi.mani@mongodb.com', 'name': 'Suganthi Mani', 'username': 'smani87'}

Message: SERVER-42398 On primary, abortTransaction and commitTransaction commands should not acquire ticket.

(cherry picked from commit 9dd11ed72971d6d5c00b9208e0200b6895658a87)
Branch: v4.0
https://github.com/mongodb/mongo/commit/8759a090f778608bdad1b0b1b158a7c2aed6bc27

Comment by Githook User [ 25/Jul/19 ]

Author:

{'name': 'Suganthi Mani', 'username': 'smani87', 'email': 'suganthi.mani@mongodb.com'}

Message: SERVER-42398 On primary, abortTransaction and commitTransaction commands should not acquire ticket irrespective of the prepared state.

(cherry picked from commit 9dd11ed72971d6d5c00b9208e0200b6895658a87)
Branch: v4.2
https://github.com/mongodb/mongo/commit/1fc5b950369f69cf9d02b8bfc7a07ccf79bbcae4

Comment by Githook User [ 25/Jul/19 ]

Author:

{'name': 'Suganthi Mani', 'username': 'smani87', 'email': 'suganthi.mani@mongodb.com'}

Message: SERVER-42398 On primary, abortTransaction and commitTransaction commands should not acquire ticket irrespective of the prepared state.
Branch: master
https://github.com/mongodb/mongo/commit/9dd11ed72971d6d5c00b9208e0200b6895658a87

Comment by Suganthi Mani [ 24/Jul/19 ]

Note: We came to above decision on discussion with geert.bosch.

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