-
Type:
Build Failure
-
Resolution: Unresolved
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
AsyncTestCMAP.test_connection_monitoring_pool_checkout_minPoolSize_connection_maxConnecting_threads_blocked_by_maxConnecting_check_out_minPoolSize_connections is often failing (flaky):
[2025/02/26 12:55:47.932] _ AsyncTestCMAP.test_connection_monitoring_pool_checkout_minPoolSize_connection_maxConnecting_threads_blocked_by_maxConnecting_check_out_minPoolSize_connections _ [2025/02/26 12:55:47.932] self = <test.asynchronous.test_connection_monitoring.AsyncTestCMAP testMethod=test_connection_monitoring_pool_checkout_minPoolSize_connection_maxConnecting_threads_blocked_by_maxConnecting_check_out_minPoolSize_connections> [2025/02/26 12:55:47.932] async def run_scenario(self): [2025/02/26 12:55:47.932] > await self.run_scenario(scenario_def, test) [2025/02/26 12:55:47.932] test\asynchronous\test_connection_monitoring.py:454: [2025/02/26 12:55:47.932] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2025/02/26 12:55:47.932] test\asynchronous\test_connection_monitoring.py:290: in run_scenario [2025/02/26 12:55:47.932] self.check_events(test["events"], test["ignore"]) [2025/02/26 12:55:47.932] test\asynchronous\test_connection_monitoring.py:204: in check_events [2025/02/26 12:55:47.932] self.check_event(actual, expected) [2025/02/26 12:55:47.932] test\asynchronous\test_connection_monitoring.py:192: in check_event [2025/02/26 12:55:47.932] self.check_object(actual, expected) [2025/02/26 12:55:47.932] test\asynchronous\test_connection_monitoring.py:177: in check_object [2025/02/26 12:55:47.932] self.assertEqual(type(actual), OBJECT_TYPES[expected["type"]]) [2025/02/26 12:55:47.932] E AssertionError: <class 'pymongo.monitoring.ConnectionCreatedEvent'> != <class 'pymongo.monitoring.ConnectionCheckedOutEvent'> [2025/02/26 12:55:47.932] ---------------------------- Captured stdout call ----------------------------- [2025/02/26 12:55:47.932] Failed test: 'threads blocked by maxConnecting check out minPoolSize connections' [2025/02/26 12:55:47.932] Operations: [2025/02/26 12:55:47.932] {'name': 'ready'} [2025/02/26 12:55:47.932] {'name': 'start', 'target': 'thread1'} [2025/02/26 12:55:47.932] {'name': 'start', 'target': 'thread2'} [2025/02/26 12:55:47.932] {'name': 'wait', 'ms': 200} [2025/02/26 12:55:47.932] {'name': 'checkOut', 'thread': 'thread1'} [2025/02/26 12:55:47.932] {'name': 'waitForEvent', 'event': 'ConnectionCreated', 'count': 2} [2025/02/26 12:55:47.932] {'name': 'checkOut', 'thread': 'thread2'} [2025/02/26 12:55:47.932] {'name': 'waitForEvent', 'event': 'ConnectionCheckedOut', 'count': 2} [2025/02/26 12:55:47.932] Threads: [2025/02/26 12:55:47.932] {'thread1': <test.asynchronous.utils_spec_runner.SpecRunnerTask object at 0x0000013C1F2AC0A0>, 'thread2': <test.asynchronous.utils_spec_runner.SpecRunnerTask object at 0x0000013C1F2AC610>} [2025/02/26 12:55:47.932] AsyncConnections: [2025/02/26 12:55:47.932] {} [2025/02/26 12:55:47.932] Events: [2025/02/26 12:55:47.932] PoolCreatedEvent(('localhost', 27017), {'maxPoolSize': 3, 'minPoolSize': 2, 'waitQueueTimeoutMS': 5000.0}) [2025/02/26 12:55:47.932] PoolReadyEvent(('localhost', 27017)) [2025/02/26 12:55:47.932] ConnectionCreatedEvent(('localhost', 27017), 1) [2025/02/26 12:55:47.932] ConnectionCheckOutStartedEvent(('localhost', 27017)) [2025/02/26 12:55:47.932] ConnectionCreatedEvent(('localhost', 27017), 2) [2025/02/26 12:55:47.932] ConnectionCheckOutStartedEvent(('localhost', 27017)) [2025/02/26 12:55:47.932] ConnectionReadyEvent(('localhost', 27017), 2, 0.5309999999999491) [2025/02/26 12:55:47.932] ConnectionCheckedOutEvent(('localhost', 27017), 2, 0.5620000000000118) [2025/02/26 12:55:47.932] ConnectionCreatedEvent(('localhost', 27017), 3) [2025/02/26 12:55:47.932] ConnectionReadyEvent(('localhost', 27017), 1, 1.0) [2025/02/26 12:55:47.932] ConnectionReadyEvent(('localhost', 27017), 3, 0.5) [2025/02/26 12:55:47.932] ConnectionCheckedOutEvent(('localhost', 27017), 3, 1.0159999999999627) [2025/02/26 12:55:47.932] Log: [2025/02/26 12:55:47.932] Checking event actual: ConnectionCreatedEvent(('localhost', 27017), 1) vs expected: {'type': 'ConnectionCreated', 'address': 42} [2025/02/26 12:55:47.932] Checking event actual: ConnectionCreatedEvent(('localhost', 27017), 2) vs expected: {'type': 'ConnectionCreated', 'address': 42} [2025/02/26 12:55:47.932] Checking event actual: ConnectionCheckedOutEvent(('localhost', 27017), 2, 0.5620000000000118) vs expected: {'type': 'ConnectionCheckedOut', 'address': 42} [2025/02/26 12:55:47.932] Checking event actual: ConnectionCreatedEvent(('localhost', 27017), 3) vs expected: {'type': 'ConnectionCheckedOut', 'address': 42}
- is duplicated by
-
PYTHON-5175 test.asynchronous.test_connection_monitoring.AsyncTestCMAP.test_connection_monitoring_pool_checkout_minPoolSize_connection_maxConnecting_threads_blocked_by_maxConnecting_check_out_minPoolSize_connections failure
-
- Closed
-
- is related to
-
PYTHON-4493 Use asyncio protocols instead of sockets for network IO
-
- Closed
-