[JAVA-1581] Driver throws IllegalStateException unnecessarily Created: 02/Dec/14  Updated: 29/Jan/15  Resolved: 02/Dec/14

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 2.12.5, 2.13.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

Issue Links:
Related
related to JAVA-1579 Unclear API Closed

 Description   

The driver in some cases will throw an IllegalStateException indicating that the MongoClient has been closed, even in situations where it's not necessary. For example, the check is made in DBTCPConnector.releasePort, which is called in a number of places after an operation is completed.

It would be better just to allow those in-flight operations to complete normally and not throw.



 Comments   
Comment by Githook User [ 07/Jan/15 ]

Author:

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

Message: Removed unnecessary checks for a closed MongoClient/DBTCPConnector that caused
some operations to throws IllegalStateException even after completing successfully

JAVA-1581
Branch: 2.12.x
https://github.com/mongodb/mongo-java-driver/commit/4346f9a0e451ff22375cfd5bbad42aa99d48a14b

Comment by Githook User [ 02/Dec/14 ]

Author:

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

Message: Removed unnecessary checks for a closed MongoClient/DBTCPConnector that caused
some operations to throws IllegalStateException even after completing successfully

JAVA-1581
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/122481cd0871c4203ac646a8d19b9df406a957d6

Comment by Githook User [ 02/Dec/14 ]

Author:

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

Message: Removed unnecessary checks for a closed MongoClient/DBTCPConnector that caused
some operations to throws IllegalStateException even after completing successfully

JAVA-1581
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/122481cd0871c4203ac646a8d19b9df406a957d6

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