[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>

JAVA-4412
Branch: 4.4.x
https://github.com/mongodb/mongo-java-driver/commit/fac48e3c173bf1c4d25e487cdb6c8f20430459df

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>

JAVA-4412
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/8aa744d34b1b0c3e2322955d0228cbd7ebc97f95

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