[JAVA-867] db.getCollectionNames() returns phantom 'system.profile' table Created: 09/Jul/13 Updated: 31/Mar/14 Resolved: 31/Mar/14 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Command Operations |
| Affects Version/s: | 2.11.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Anatoly Borisov | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
db.getCollectionNames() among others, return 'system.profile' table, which is already deleted on all replica sets and profiling was turned off. Profiling was enabled for a while, but now it is disabled and collection 'system.profile' deleted everywhere. Invoking command db.getCollectionNames() from mongo console does not return this table. |
| Comments |
| Comment by Anatoly Borisov [ 31/Mar/14 ] |
|
I've just suppressed this error so actually I don't know if it still persists. Ok, lets close this. |
| Comment by Jeffrey Yemin [ 27/Mar/14 ] |
|
Are you still experiencing this issue? We have been unable to reproduce it. |
| Comment by Jeffrey Yemin [ 12/Jul/13 ] |
|
I'm not able to explain this discrepancy. I looked at the shell code and the driver code, and both are just querying the "system.namespaces" collection in the given database. |
| Comment by Anatoly Borisov [ 09/Jul/13 ] |
|
Yes, I've just ran the shell on the same mongos host and verified that 'system.profile' collection does not exist. |
| Comment by Jeffrey Yemin [ 09/Jul/13 ] |
|
And can I assume you were connecting to the same mongos from the shell? |
| Comment by Anatoly Borisov [ 09/Jul/13 ] |
|
My app connects to mongos, version 2.4.4 |
| Comment by Jeffrey Yemin [ 09/Jul/13 ] |
|
What server(s) are you connecting to and what type are they: replica set member(s) or mongos(s)? |
| Comment by Anatoly Borisov [ 09/Jul/13 ] |
|
The following code raises exception ("errmsg" : "ns not found") for (String collectionName : db.getCollectionNames()) { |