Test Failure - test_connection_monitoring_pool_checkout_minPoolSize_connection_maxConnecting_threads_blocked_by_maxConnecting_check_out_minPoolSize_connections is flaky

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Gone away
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • 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}
      

      https://spruce.mongodb.com/task/mongo_python_driver_test_win64_python3.9_test_7.0_sharded_cluster_auth_ssl_async_61feccacfefaf342ad673bf320b68d839bbdf66c_25_02_26_19_23_02/tests?execution=0&sortBy=STATUS&sortDir=ASC

              Assignee:
              Noah Stapp
              Reporter:
              Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: