[JAVA-2079] collectionExists returns false although collection really exists Created: 07/Jan/16 Updated: 07/Jan/16 Resolved: 07/Jan/16 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Query Operations |
| Affects Version/s: | 3.2.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Frank Becker | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Server: Ubuntu 14.04 with MongoDB 3.2 |
||
| Description |
|
Called "db.createCollection(COLLECTION_LOGS, options)" throws "CommandFailureException" because COLLECTION_LOGS already exists. In the Exception handler the call to "collectionExists" returns false, but the collection really exists: |
| Comments |
| Comment by Jeffrey Yemin [ 07/Jan/16 ] |
|
OK, based on your previous comment I'm closing this, but if you are able to reproduce it in the future please comment and we can re-open. |
| Comment by Frank Becker [ 07/Jan/16 ] |
|
It's one standalone MongoDB - extreme minimum installation on Ubuntu14. Just created the /data/db directory and started mongod in the Terminal. So it's the smallest thing you can do I think. I also only use one server address, but have three databases open in parallel (data, logs and configuration) What (and why) I did: |
| Comment by Jeffrey Yemin [ 07/Jan/16 ] |
|
Hi Frank, Before we close this out, please let me know:
|
| Comment by Frank Becker [ 07/Jan/16 ] |
|
I am sorry. I tried to create a "minimum example" to reproduce - but this one worked as it should. So I wiped my Maven .m2 repository and all the target directories and re-run Maven on my project. Now my project also worked as it should. Maybe there were some old libs of the former driver left somewhere in the build path. I can't reproduce any longer and apologise. Can be closed. |
| Comment by Ross Lawley [ 07/Jan/16 ] |
|
Hi fkbecker, That sounds off, can you provide the following:
With that information we should be able to ascertain what is happening in this case. Ross |