[SERVER-43987] Require predicates with OperationContext::waitForConditionOrInterrupt() Created: 14/Oct/19 Updated: 29/Oct/23 Resolved: 18/Oct/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.1, 4.2.2 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Benjamin Caimano (Inactive) | Assignee: | Benjamin Caimano (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Backport Requested: |
v4.2
|
||||||||||||||||||||
| Sprint: | Service Arch 2019-10-21 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
There are a select few places where we use OperationContext::waitForConditionOrInterrupt() without predicates. I'd like all invocations to use predicates. It is i) easier to reason about for devs, ii) simpler to phrase as an API set, iii) empowers more sophisticated behaviors within Interruptibles. |
| Comments |
| Comment by Githook User [ 12/Nov/19 ] |
|
Author: {'username': 'bcaimano', 'email': 'ben.caimano@mongodb.com', 'name': 'Ben Caimano'}Message: This commit also incoroporates parts of |
| Comment by Githook User [ 17/Oct/19 ] |
|
Author: {'name': 'Ben Caimano', 'username': 'bcaimano', 'email': 'ben.caimano@mongodb.com'}Message: |