[JAVA-3643] Reduce spurious info logs on Evergreen Created: 03/Mar/20  Updated: 28/Oct/23  Resolved: 04/Mar/20

Status: Closed
Project: Java Driver
Component/s: Test Coverage
Affects Version/s: None
Fix Version/s: 3.12.2, 4.0.0

Type: Improvement Priority: Major - P3
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   

Seeing lots of INFO log messages on Evergreen like:

[2020/03/02 19:52:53.681]     00:52:53.654 [MaintenanceTimer-16-thread-1] INFO  org.mongodb.driver.connection - Closed connection [connectionId{localValue:49297}] to host1:27017 because it is past its maximum allowed idle time.

I downloaded one patch build log file and found 87334 lines containing the string "because it is past its maximum allowed idle time".

This makes it unnecessarily hard to process log files when you need to debug something in the build.



 Comments   
Comment by Githook User [ 04/Mar/20 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@mongodb.com'}

Message: Close connection pool in test teardown

The pool in this test starts a background thread running,
so by closing it we also shutdown that thread.

JAVA-3643
Branch: 3.12.x
https://github.com/mongodb/mongo-java-driver/commit/4492facf529e68cb56f49b2438826efdf22c5643

Comment by Githook User [ 04/Mar/20 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@mongodb.com'}

Message: Close connection pool in test teardown

The pool in this test starts a background thread running,
so by closing it we also shutdown that thread.

JAVA-3643
Branch: 4.0.x
https://github.com/mongodb/mongo-java-driver/commit/022d7319ab77a5d575c0cf709d30fb037d110c7b

Comment by Githook User [ 04/Mar/20 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@mongodb.com'}

Message: Close connection pool in test teardown

The pool in this test starts a background thread running,
so by closing it we also shutdown that thread.

JAVA-3643
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/7b0d3e2c8ea33a956375fe69b29a6ba850a319a9

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