[Build Failure] test_csot_timeout_message

XMLWordPrintableJSON

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

      Name of Failure:

      FAILURE: AssertionError: '(configured timeouts: timeoutMS: 500.0ms' not found in 'operation exceeded time limit

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_mongodb_latest_test_server_version_python3.12_async_auth_ssl_sharded_cluster_cov_4e9b52b8d6a7d7c5897acf70bd3157cd47a2ab3e_25_08_07_18_01_08/tests?execution=1&sorts=STATUS%3AASC

      Context of when and why the failure occurred:

      Uncertain, I re-ran a passing build from yesterday after seeing the failure on a PR today.

      Stack trace:

       [2025/08/08 20:11:52.869] FAILURE: AssertionError: '(configured timeouts: timeoutMS: 500.0ms' not found in 'operation exceeded time limit, full error: {\'ok\': 0.0, \'errmsg\': \'operation exceeded time limit\', \'code\': 50, \'codeName\': \'MaxTimeMSExpired\', \'$clusterTime\': {\'clusterTime\': Timestamp(1754701691, 57), \'signature\': {\'hash\': b"\\xa4\\xaf\\x04\\\\j\\xcd\\xaf\\xc4\\x88\\xb0\\xbd\\xed\\x18Z\\xc2\\x9e\\xc2\'\\xd4\\xa6", \'keyId\': 7536382898157387802}}, \'operationTime\': Timestamp(1754701691, 57)}' ()
       [2025/08/08 20:11:52.869] self = <test.asynchronous.test_pooling.TestPooling testMethod=test_csot_timeout_message>
       [2025/08/08 20:11:52.869]     @async_client_context.require_failCommand_appName
       [2025/08/08 20:11:52.869]     async def test_csot_timeout_message(self):
       [2025/08/08 20:11:52.869]         client = await self.async_rs_or_single_client(appName="connectionTimeoutApp")
       [2025/08/08 20:11:52.869]         # Mock an operation failing due to pymongo.timeout().
       [2025/08/08 20:11:52.869]         mock_connection_timeout = {
       [2025/08/08 20:11:52.869]             "configureFailPoint": "failCommand",
       [2025/08/08 20:11:52.869]             "mode": "alwaysOn",
       [2025/08/08 20:11:52.869]             "data": {
       [2025/08/08 20:11:52.869]                 "blockConnection": True,
       [2025/08/08 20:11:52.869]                 "blockTimeMS": 1000,
       [2025/08/08 20:11:52.869]                 "failCommands": ["find"],
       [2025/08/08 20:11:52.869]                 "appName": "connectionTimeoutApp",
       [2025/08/08 20:11:52.869]             },
       [2025/08/08 20:11:52.869]         }
       [2025/08/08 20:11:52.869]     
       [2025/08/08 20:11:52.869]         await client.db.t.insert_one({"x": 1})
       [2025/08/08 20:11:52.869]     
       [2025/08/08 20:11:52.869]         async with self.fail_point(mock_connection_timeout):
       [2025/08/08 20:11:52.869]             with self.assertRaises(Exception) as error:
       [2025/08/08 20:11:52.869]                 with timeout(0.5):
       [2025/08/08 20:11:52.869]                     await client.db.t.find_one({"$where": delay(2)})
       [2025/08/08 20:11:52.869]     
       [2025/08/08 20:11:52.869] >       self.assertIn("(configured timeouts: timeoutMS: 500.0ms", str(error.exception))
       [2025/08/08 20:11:52.869] E       AssertionError: '(configured timeouts: timeoutMS: 500.0ms' not found in 'operation exceeded time limit, full error: {\'ok\': 0.0, \'errmsg\': \'operation exceeded time limit\', \'code\': 50, \'codeName\': \'MaxTimeMSExpired\', \'$clusterTime\': {\'clusterTime\': Timestamp(1754701691, 57), \'signature\': {\'hash\': b"\\xa4\\xaf\\x04\\\\j\\xcd\\xaf\\xc4\\x88\\xb0\\xbd\\xed\\x18Z\\xc2\\x9e\\xc2\'\\xd4\\xa6", \'keyId\': 7536382898157387802}}, \'operationTime\': Timestamp(1754701691, 57)}'
       [2025/08/08 20:11:52.869] test/asynchronous/test_pooling.py:454: AssertionError
      

              Assignee:
              Steve Silvester
              Reporter:
              Steve Silvester
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: