This test may wait indefinitely as it is trying to apply the commitIndexBuild oplog entry.
The index build commit code keeps checking the pre-commit condition every 100 ms. If the index build thread is still setting up when _tryCommit is trying to evaluate the pre-commit condition, the condition fails, leading to the test waiting indefinitely because OperationContext::sleepFor() never returns.
The wait function in the OperationContext is dependent on the ClockSource installed in the ServiceContext. For the dbtests framework, the implementation used is the ClockSourceMock, which needs to be advanced explicitly by the test code.
- is related to
-
SERVER-46560 Make Abort index build logic deterministic.
- Closed
-
SERVER-46722 update StorageTimestampTests TimestampIndexBuilderOnPrimary dbtest test case
- Closed