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