[JAVA-2044] Server monitor fails to log successful connection after a failure Created: 20/Nov/15  Updated: 07/Dec/15  Resolved: 20/Nov/15

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: 2.13.3, 3.1.1
Fix Version/s: 2.14.0, 3.2.0

Type: Bug Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The server monitor fails to set the current exception back to null at the start of each loop. As a result, a successful connection after a failure is not logged property



 Comments   
Comment by Jeffrey Yemin [ 07/Dec/15 ]

The 3.2.0 driver, which contains a fix for this issue, has been released today.

Comment by Githook User [ 20/Nov/15 ]

Author:

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

Message: JAVA-2044: In ServerMonitor reset currentException to null each time through the loop. This will ensure that a successful connection after a failed connection will be properly logged.
Branch: 2.x
https://github.com/mongodb/mongo-java-driver/commit/66d759bef640ba7b0162c069b5e90a0f4a937536

Comment by Githook User [ 20/Nov/15 ]

Author:

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

Message: JAVA-2044: In DefaultServerMonitor reset currentException to null each time through the loop. This will ensure that a successful connection after a failed connection will be properly logged.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/dca4c5c2bd22e2a63d954384dcba7a8575cbf28b

Generated at Thu Feb 08 08:56:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.