[JAVA-1886] MongoClient.islocked() method fails Created: 13/Jul/15 Updated: 15/Oct/15 Resolved: 15/Jul/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Command Operations |
| Affects Version/s: | 3.0.0 |
| Fix Version/s: | 3.0.3, 3.1.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Dharshan Rangegowda | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I am trying to unlock a locked 3.x database.
isLocked() fails with the following stack trace
Also I have noticed that if I pass the MongoClient object to another function and unlock it, the unlock appears to hang. If I use a try {} finally {} and unlock, it appears to go through. |
| Comments |
| Comment by Jeffrey Yemin [ 16/Jul/15 ] |
|
Fix is now available in the 3.0.3 release. |
| Comment by Githook User [ 15/Jul/15 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Ignoring MongoClient.isLocked test for sharded clusters. |
| Comment by Githook User [ 15/Jul/15 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Ignoring MongoClient.isLocked test for sharded clusters. |
| Comment by Githook User [ 15/Jul/15 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Changed FindOperation to only use the $query meta-operator if there other meta-operators that are being used. |
| Comment by Githook User [ 15/Jul/15 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Changed FindOperation to only use the $query meta-operator if there other meta-operators that are being used. |
| Comment by Jeffrey Yemin [ 15/Jul/15 ] |
|
Never mind, I was able to reproduce this. |
| Comment by Jeffrey Yemin [ 14/Jul/15 ] |
|
Is the MongoClient connecting to a standalone, a replica set, or a mongos router? Also, please paste a code snippet for how you create and initialize the MongoClient instance. Regards, |