[JAVA-4412] Scala integration tests should ensure MongoClient instances are closed Created: 22/Nov/21 Updated: 28/Oct/23 Resolved: 06/Dec/21 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Scala, Test Runner |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.1 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
This issue was discovered while running tests on a machine with very low open files ulimit of 256, and observing that the Scala tests were consistently causing the server to run out of open file handles for new connections. On investigation it was evident that the root cause is MongoClient instances that are created but never closed. |
| Comments |
| Comment by Githook User [ 09/Dec/21 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}Message: Ensure MongoClient instances are closed in Scala tests (#830) Co-authored-by: Ross Lawley <ross.lawley@gmail.com>
|
| Comment by Githook User [ 06/Dec/21 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}Message: Ensure MongoClient instances are closed in Scala tests (#830) Co-authored-by: Ross Lawley <ross.lawley@gmail.com>
|