Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
Fully Compatible
-
ALL
-
v5.0
-
-
45
Description
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).