-
Type: Build Failure
-
Resolution: Unresolved
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
Python Drivers
-
Not Needed
-
Name of Failure:
test.test_connection_monitoring.TestCMAP.test_connection_monitoring_pool_clear_interrupting_pending_connections_clear_with_interruptInUseConnections___true_closes_pending_connections
Link to task:
Context of when and why the failure occurred:
It has been failing intermittently since PYTHON-2048 was merged.
Stack trace:
[2024/04/29 05:44:57.343] FAILURE: AssertionError: Didn't ever find 1 <class 'pymongo.monitoring.ConnectionCheckOutFailedEvent'> event(s) () [2024/04/29 05:44:57.343] self = <test.test_connection_monitoring.TestCMAP testMethod=test_connection_monitoring_pool_clear_interrupting_pending_connections_clear_with_interruptInUseConnections_=_true_closes_pending_connections> [2024/04/29 05:44:57.343] def run_scenario(self): [2024/04/29 05:44:57.343] > self.run_scenario(scenario_def, test) [2024/04/29 05:44:57.343] test/test_connection_monitoring.py:460: [2024/04/29 05:44:57.343] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2024/04/29 05:44:57.343] test/test_connection_monitoring.py:289: in run_scenario [2024/04/29 05:44:57.343] self.run_operations(test["operations"]) [2024/04/29 05:44:57.343] test/test_connection_monitoring.py:170: in run_operations [2024/04/29 05:44:57.343] self.run_operation(op) [2024/04/29 05:44:57.343] test/test_connection_monitoring.py:164: in run_operation [2024/04/29 05:44:57.343] meth(op) [2024/04/29 05:44:57.343] test/test_connection_monitoring.py:118: in wait_for_event [2024/04/29 05:44:57.343] wait_until( [2024/04/29 05:44:57.343] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2024/04/29 05:44:57.343] predicate = <function TestCMAP.wait_for_event.<locals>.<lambda> at 0x000000000e741d80> [2024/04/29 05:44:57.343] success_description = "find 1 <class 'pymongo.monitoring.ConnectionCheckOutFailedEvent'> event(s)" [2024/04/29 05:44:57.343] timeout = 10.0 [2024/04/29 05:44:57.343] def wait_until(predicate, success_description, timeout=10): [2024/04/29 05:44:57.343] """Wait up to 10 seconds (by default) for predicate to be true. [2024/04/29 05:44:57.343] [2024/04/29 05:44:57.343] E.g.: [2024/04/29 05:44:57.343] [2024/04/29 05:44:57.343] wait_until(lambda: client.primary == ('a', 1), [2024/04/29 05:44:57.343] 'connect to the primary') [2024/04/29 05:44:57.343] [2024/04/29 05:44:57.343] If the lambda-expression isn't true after 10 seconds, we raise [2024/04/29 05:44:57.343] AssertionError("Didn't ever connect to the primary"). [2024/04/29 05:44:57.343] [2024/04/29 05:44:57.343] Returns the predicate's first true value. [2024/04/29 05:44:57.343] """ [2024/04/29 05:44:57.343] start = time.time() [2024/04/29 05:44:57.343] interval = min(float(timeout) / 100, 0.1) [2024/04/29 05:44:57.343] while True: [2024/04/29 05:44:57.343] retval = predicate() [2024/04/29 05:44:57.343] if retval: [2024/04/29 05:44:57.343] return retval [2024/04/29 05:44:57.343] [2024/04/29 05:44:57.343] if time.time() - start > timeout: [2024/04/29 05:44:57.343] > raise AssertionError("Didn't ever %s" % success_description) [2024/04/29 05:44:57.343] E AssertionError: Didn't ever find 1 <class 'pymongo.monitoring.ConnectionCheckOutFailedEvent'> event(s) [2024/04/29 05:44:57.343] test/utils.py:819: AssertionError
- is related to
-
PYTHON-4156 CMAP interrupt pending connections test failures
- Closed
- related to
-
PYTHON-4156 CMAP interrupt pending connections test failures
- Closed