[SERVER-33473] Make WT ticket acquisition interruptible Created: 23/Feb/18  Updated: 29/Oct/23  Resolved: 06/Mar/18

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

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

Backwards Compatibility: Fully Compatible
Sprint: Storage NYC 2018-03-12
Participants:

 Description   

SERVER-33289 causes WT tickets to be released when transaction resources are stashed and reacquired when transaction resources are unstashed. This has the potential to introduce a deadlock, since we are acquiring a WT ticket while holding locks. We do not believe it is possible to introduce a deadlock today, since we are only holding intent locks in transactions (with the exception of $isolated updates or deletes), but we could introduce a deadlock in the future if transactions can take strong locks. For this reason, we would like to make WT ticket acquisition interruptible, so that it can be interrupted by killOp or maxTimeMS.



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

Author:

{'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams', 'username': 'louiswilliams'}

Message: SERVER-33473 Make WT ticket acquisition interruptible
Branch: master
https://github.com/mongodb/mongo/commit/c919de588502045e41e3801d86a688981e01d223

Comment by Eric Milkie [ 27/Feb/18 ]

If it isn't much work, we should do it. The fuzzer could possibly try this and fail, if we do not prohibit it.

Comment by Tess Avitabile (Inactive) [ 27/Feb/18 ]

milkie, do you think we should ban $isolated/$atomic in local snapshot reads / multi-statement transactions even though we are doing this work? It would be unfortunate to have a deadlock until the maxTimeMS expires (or forever, if there is no maxTimeMS on the operation).

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