[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:
Backports
Depends
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: SERVER-39421 Fix opCtx and baton waits

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.

(cherry picked from commit a52de284c19cd7d4ccf224ccc023d7f35542613b)
Branch: v4.0
https://github.com/mongodb/mongo/commit/fbe8f135b7a5e5a0da51436ca2be1158f1a203c8

Comment by Githook User [ 08/Feb/19 ]

Author:

{'name': 'Jason Carey', 'email': 'jcarey@argv.me', 'username': 'hanumantmk'}

Message: SERVER-39421 Fix opCtx and baton waits

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.
Branch: master
https://github.com/mongodb/mongo/commit/a52de284c19cd7d4ccf224ccc023d7f35542613b

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