-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Code
-
Fully Compatible
-
ALL
-
v5.0
-
-
45
The MongodbCAPITest::KillOp test verifies the behavior of killop by:
- Running a long running operation: {'sleep': {'secs': 1000}}
- Spawning a thread that kills the long running operation (once it appears in currentOp).
- Verifying that the long running operation is not successful and returns ErrorCodes::Interrupted.
The test may fail if the spawned thread takes too long (~10 seconds in observed failures) before killing the operation. Moreover, the assertions in the test are not thread-safe and should use the ThreadAssertionMonitor.
The test should adopt ThreadAssertionMonitor and properly handle incidents in which the operation is not killed in time (and returns with an okay status).