[SERVER-21004] Implement wait objects that support operation interruption/expiration Created: 19/Oct/15  Updated: 25/Jan/17  Resolved: 14/Jul/16

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

Type: Improvement Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-27345 reclaim inactive WT sessions on calli... Closed
is related to SERVER-21118 A slaveDelay'd member in sleep gets s... Closed
is related to SERVER-4984 make it possible to interrupt operati... Closed
is related to SERVER-25062 Implement interruptible sleep and con... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 16 (06/24/16), Sharding 17 (07/15/16)
Participants:
Linked BF Score: 0

 Description   

Operations running in MongoDB often have soft time limits and all are intended to be interruptible at certain interruption points. Today, this is done in an ad hoc manner using bare std::condition_variable to wait for application events. Checking for interruption or the expiration of the maxTimeMs time limit is done on an ad hoc basis, and sometimes omitted.

This task is to build new condition variable wait methods that take an OperationContext, and support operation killing and maxTime expiration.



 Comments   
Comment by Githook User [ 14/Jul/16 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-21004 Fix argument lookup compile error exposed by clang.
Branch: master
https://github.com/mongodb/mongo/commit/485a0caf0052ee9b0ad735610a7555e7374e5696

Comment by Githook User [ 13/Jul/16 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-21004 Interruptible wait on condition variables with OperationContexts.
Branch: master
https://github.com/mongodb/mongo/commit/d5985d3a661c45f1c952205f4b6d107c37fa034d

Comment by Githook User [ 13/Jul/16 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-21004 Add setAlarm capability and virtualization flag to ClockSourceMock.
Branch: master
https://github.com/mongodb/mongo/commit/3f8990345ec18fe2f0316859231c2424e4355b95

Generated at Thu Feb 08 03:55:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.