[JAVA-4318] Reduce the probability of failing the tests wait-queue-timeout.json and wait-queue-timeouts.json Created: 27/Sep/21  Updated: 28/Oct/23  Resolved: 05/Nov/21

Status: Closed
Project: Java Driver
Component/s: Test Failure
Affects Version/s: None
Fix Version/s: 4.4.0

Type: Improvement Priority: Minor - P4
Reporter: Valentin Kavalenka Assignee: Valentin Kavalenka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by JAVA-3927 Rate limit new connection creations (... Closed
Related
is related to JAVA-4194 Increase `waitQueueTimeoutMS` in some... Closed
Epic Link: Investigate flaky tests
Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed

 Description   

I tried dealing with these tests in DRIVERS-1806/JAVA-4194 by increasing the timeout, but they still fail sometimes.

Maybe we could somehow pre-start a thread in DefaultConnectionPool.AsyncWorkManager when running these tests to further reduce the probability of them failing due to timing out.



 Comments   
Comment by Githook User [ 05/Nov/21 ]

Author:

{'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}

Message: Prestart connection pool async work manager when running `wait-queue-timeout.json`, `wait-queue-timeouts.json` (#804)

JAVA-4318
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/cd9a45f6be88fb53733887bacf5f87ef30a2ff31

Generated at Thu Feb 08 09:01:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.