[SERVER-2125] unable to do show collections on slaves Created: 20/Nov/10 Updated: 30/Mar/12 Resolved: 20/Nov/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 1.6.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Joseph Wang | Assignee: | Kristina Chodorow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
> rs.status() , , { "_id" : 2, "name" : "stage1.vpc3.estalea.net:4103", "health" : 1, "state" : 2, "uptime" : 1235, "lastHeartbeat" : "Fri Nov 19 2010 16:31:17 GMT-0800 (PST)" } ], > show dbs |
| Comments |
| Comment by Joseph Wang [ 20/Nov/10 ] |
|
Strange, I was able to do now. Please close the bug. Thank you. [joseph.wang@stage1.vpc3 ~]$ /usr/local/mongodb-linux-x86_64-1.6.3/bin/mongo localhost:4102 |
| Comment by Joseph Wang [ 20/Nov/10 ] |
|
Doesn't work [joseph.wang@stage1.vpc3 logs]$ /usr/local/mongodb-linux-x86_64-1.6.3/bin/mongo localhost:4101 , , { "_id" : 2, "name" : "stage1.vpc3.estalea.net:4103", "health" : 1, "state" : 2, "uptime" : 1925, "lastHeartbeat" : "Fri Nov 19 2010 16:42:48 GMT-0800 (PST)" } ], [joseph.wang@stage1.vpc3 logs]$ /usr/local/mongodb-linux-x86_64-1.6.3/bin/mongo localhost:4102 |
| Comment by Eliot Horowitz (Inactive) [ 20/Nov/10 ] |
|
Some ops may now be allowed. |
| Comment by Eliot Horowitz (Inactive) [ 20/Nov/10 ] |
|
You need to do: rs.slaveOk() shorthand for db.getMongo().setSlaveOk() |
| Comment by Joseph Wang [ 20/Nov/10 ] |
|
1.7.2 doesn't have this issue. [root@ip-10-166-59-166 ~]# mongodb-linux-x86_64-1.7.2/bin/mongo localhost:20000 |