-
Type:
Build Failure
-
Resolution: Gone away
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Name of Failure:
test.asynchronous.test_client.TestClient.test_continuous_network_errors and test.test_client.TestClient.test_continuous_network_errors
Link to task:
Context of when and why the failure occurred:
Maybe PYTHON-4557?
Stack trace:
[2025/04/04 05:29:54.541] FAILURE: AssertionError: 2 != 48 within 30 delta (46 difference) () [2025/04/04 05:29:54.541] self = <test.asynchronous.test_client.TestClient testMethod=test_continuous_network_errors> [2025/04/04 05:29:54.541] @unittest.skipIf("PyPy" in sys.version, "PYTHON-2927 fails often on PyPy") [2025/04/04 05:29:54.541] async def test_continuous_network_errors(self): [2025/04/04 05:29:54.541] def server_description_count(): [2025/04/04 05:29:54.541] i = 0 [2025/04/04 05:29:54.541] for obj in gc.get_objects(): [2025/04/04 05:29:54.541] try: [2025/04/04 05:29:54.541] if isinstance(obj, ServerDescription): [2025/04/04 05:29:54.541] i += 1 [2025/04/04 05:29:54.541] except ReferenceError: [2025/04/04 05:29:54.541] pass [2025/04/04 05:29:54.541] return i [2025/04/04 05:29:54.541] [2025/04/04 05:29:54.541] gc.collect() [2025/04/04 05:29:54.541] with client_knobs(min_heartbeat_interval=0.002): [2025/04/04 05:29:54.541] client = self.simple_client( [2025/04/04 05:29:54.541] "invalid:27017", heartbeatFrequencyMS=2, serverSelectionTimeoutMS=200 [2025/04/04 05:29:54.541] ) [2025/04/04 05:29:54.541] initial_count = server_description_count() [2025/04/04 05:29:54.541] with self.assertRaises(ServerSelectionTimeoutError): [2025/04/04 05:29:54.541] await client.test.test.find_one() [2025/04/04 05:29:54.541] gc.collect() [2025/04/04 05:29:54.541] final_count = server_description_count() [2025/04/04 05:29:54.541] await client.close() [2025/04/04 05:29:54.541] # If a bug like PYTHON-2433 is reintroduced then too many [2025/04/04 05:29:54.541] # ServerDescriptions will be kept alive and this test will fail: [2025/04/04 05:29:54.541] # AssertionError: 11 != 47 within 20 delta (36 difference) [2025/04/04 05:29:54.541] > self.assertAlmostEqual(initial_count, final_count, delta=30) [2025/04/04 05:29:54.541] E AssertionError: 2 != 48 within 30 delta (46 difference) [2025/04/04 05:29:54.541] test/asynchronous/test_client.py:1882: AssertionError
- blocks
-
PYTHON-5351 Enable debug logs on Evergreen test suite by default
-
- Blocked
-