-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
Not Needed
-
Name of Failure:
test.test_cmap.TestCMAP.test_cmap_pool_clear_interrupting_pending_connections_clear_with_interruptInUseConnections___true_closes_pending_connections
Link to task:
Context of when and why the failure occurred:
Failed after merging PYTHON-3175.
Stack trace:
**
[2024/01/19 11:06:37.160] FAILURE: AssertionError: Didn't ever find 1 <class 'pymongo.monitoring.ConnectionCheckOutFailedEvent'> event(s) () [2024/01/19 11:06:37.160] self = <test.test_cmap.TestCMAP testMethod=test_cmap_pool_clear_interrupting_pending_connections_clear_with_interruptInUseConnections_=_true_closes_pending_connections> [2024/01/19 11:06:37.160] def run_scenario(self): [2024/01/19 11:06:37.160] > self.run_scenario(scenario_def, test) [2024/01/19 11:06:37.160] test/test_cmap.py:459: [2024/01/19 11:06:37.160] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2024/01/19 11:06:37.160] test/test_cmap.py:289: in run_scenario [2024/01/19 11:06:37.160] self.run_operations(test["operations"]) [2024/01/19 11:06:37.160] test/test_cmap.py:170: in run_operations [2024/01/19 11:06:37.160] self.run_operation(op) [2024/01/19 11:06:37.160] test/test_cmap.py:164: in run_operation [2024/01/19 11:06:37.160] meth(op) [2024/01/19 11:06:37.160] test/test_cmap.py:118: in wait_for_event [2024/01/19 11:06:37.160] wait_until( [2024/01/19 11:06:37.160] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2024/01/19 11:06:37.160] predicate = <function TestCMAP.wait_for_event.<locals>.<lambda> at 0x0000000005d260c0> [2024/01/19 11:06:37.160] success_description = "find 1 <class 'pymongo.monitoring.ConnectionCheckOutFailedEvent'> event(s)" [2024/01/19 11:06:37.160] timeout = 10.0 [2024/01/19 11:06:37.160] def wait_until(predicate, success_description, timeout=10): [2024/01/19 11:06:37.160] """Wait up to 10 seconds (by default) for predicate to be true. [2024/01/19 11:06:37.160] [2024/01/19 11:06:37.160] E.g.: [2024/01/19 11:06:37.160] [2024/01/19 11:06:37.160] wait_until(lambda: client.primary == ('a', 1), [2024/01/19 11:06:37.160] 'connect to the primary') [2024/01/19 11:06:37.160] [2024/01/19 11:06:37.160] If the lambda-expression isn't true after 10 seconds, we raise [2024/01/19 11:06:37.160] AssertionError("Didn't ever connect to the primary"). [2024/01/19 11:06:37.160] [2024/01/19 11:06:37.160] Returns the predicate's first true value. [2024/01/19 11:06:37.160] """ [2024/01/19 11:06:37.160] start = time.time() [2024/01/19 11:06:37.160] interval = min(float(timeout) / 100, 0.1) [2024/01/19 11:06:37.160] while True: [2024/01/19 11:06:37.160] retval = predicate() [2024/01/19 11:06:37.160] if retval: [2024/01/19 11:06:37.160] return retval [2024/01/19 11:06:37.160] [2024/01/19 11:06:37.160] if time.time() - start > timeout: [2024/01/19 11:06:37.160] > raise AssertionError("Didn't ever %s" % success_description) [2024/01/19 11:06:37.160] E AssertionError: Didn't ever find 1 <class 'pymongo.monitoring.ConnectionCheckOutFailedEvent'> event(s) [2024/01/19 11:06:37.160] test/utils.py:798: AssertionError
- is caused by
-
PYTHON-3175 Preemptively cancel in progress operations when SDAM heartbeats timeout
- Closed
- is related to
-
PYTHON-4414 interruptInUseConnections should cancel pending connections too
- Closed
-
DRIVERS-2835 CMAP interruptInUseConnections test case race condition
- Closed
- related to
-
PYTHON-4414 interruptInUseConnections should cancel pending connections too
- Closed