[JAVA-1969] Wrong reason for closing a connection supplied in log message in some cases Created: 17/Sep/15  Updated: 07/Oct/15  Resolved: 24/Sep/15

Status: Closed
Project: Java Driver
Component/s: Connection Management, Monitoring
Affects Version/s: 3.0.4
Fix Version/s: 3.1.0

Type: Bug Priority: Major - P3
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 check for connection.isClosed() should come before the check for previous generation. If a connection is closed, the generation will be incremented when that happens, so the check for connection.isClosed() will never be reached.



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

Released in 3.1.0

Comment by Githook User [ 24/Sep/15 ]

Author:

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

Message: JAVA-1969: Report to the logger the correct reason for closing a connection by moving the check for an alread closed connection to the front.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/1697770b344c3386d165eb3e3ea6ca24096aaa32

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