[SERVER-39421] Fix opCtx and baton waits Created: 07/Feb/19 Updated: 29/Oct/23 Resolved: 08/Feb/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.7, 4.1.8 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mira Carey | Assignee: | Mira Carey |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v4.0
|
||||||||
| Sprint: | Service Arch 2019-02-11, Service Arch 2019-02-25 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 0 | ||||||||
| Description |
|
BF-12091 found two bugs: 1. Interruptible::waitForConditionOrInterruptFor with a predicate didn't wait the correct amount of time. 2. baton_asio_linux would fail to expire timers whose deadline == now (only expiring those 1 millisecond past now). This caused it to spin unnecessarily just as timers were expiring. |
| Comments |
| Comment by Githook User [ 08/Feb/19 ] |
|
Author: {'name': 'Jason Carey', 'email': 'jcarey@argv.me', 'username': 'hanumantmk'}Message: baton_asio_linux would fail to expire timers whose deadline == now (only (cherry picked from commit a52de284c19cd7d4ccf224ccc023d7f35542613b) |
| Comment by Githook User [ 08/Feb/19 ] |
|
Author: {'name': 'Jason Carey', 'email': 'jcarey@argv.me', 'username': 'hanumantmk'}Message: 1. Interruptible::waitForConditionOrInterruptFor with a predicate didn't 2. baton_asio_linux would fail to expire timers whose deadline == now |