[SERVER-3128] Getting inconsistent query result Created: 21/May/11  Updated: 30/Mar/12  Resolved: 02/Sep/11

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 1.6.3
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Joseph Wang Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

We encountered the similar before. Before, one of the slaves was in state 2.

Now, all nodes are healthy.

> rs.status()
{
"set" : "lp",
"date" : "Fri May 20 2011 17:37:33 GMT-0700 (PDT)",
"myState" : 1,
"members" : [

{ "_id" : 0, "name" : "stage1.vpc3.estalea.net:4101", "health" : 1, "state" : 1, "self" : true }

,

{ "_id" : 1, "name" : "stage1.vpc3.estalea.net:4102", "health" : 1, "state" : 2, "uptime" : 2186684, "lastHeartbeat" : "Fri May 20 2011 17:37:33 GMT-0700 (PDT)" }

,

{ "_id" : 2, "name" : "stage1.vpc3.estalea.net:4103", "health" : 1, "state" : 2, "uptime" : 2186658, "lastHeartbeat" : "Fri May 20 2011 17:37:33 GMT-0700 (PDT)" }

],
"ok" : 1
}



 Comments   
Comment by Joseph Wang [ 23/May/11 ]

We'd increased the request timeout from 1000ms to 2000ms on EC2 instance. At least we don't get empty query result now.

Comment by Eliot Horowitz (Inactive) [ 21/May/11 ]

Those helpers only work well with replica sets in shell versions > 1.8.

Is that the only issue?

Comment by Joseph Wang [ 21/May/11 ]

[joseph.wang@stage1.vpc3 ~]$ /usr/local/mongodb-linux-x86_64-1.6.3/bin/mongo localhost:4101
MongoDB shell version: 1.6.3
connecting to: localhost:4101/test
> db.printReplicationInfo()
{
"errmsg" : "local.oplog.$main, or its options, not found in system.namespaces collection (not --master?)"
}
> rs.status()
{
"set" : "lp",
"date" : "Fri May 20 2011 17:47:59 GMT-0700 (PDT)",
"myState" : 1,
"members" : [

{ "_id" : 0, "name" : "stage1.vpc3.estalea.net:4101", "health" : 1, "state" : 1, "self" : true }

,

{ "_id" : 1, "name" : "stage1.vpc3.estalea.net:4102", "health" : 1, "state" : 2, "uptime" : 2187310, "lastHeartbeat" : "Fri May 20 2011 17:47:58 GMT-0700 (PDT)" }

,

{ "_id" : 2, "name" : "stage1.vpc3.estalea.net:4103", "health" : 1, "state" : 2, "uptime" : 2187284, "lastHeartbeat" : "Fri May 20 2011 17:47:58 GMT-0700 (PDT)" }

],
"ok" : 1
}
> db.printReplicationInfo()
{
"errmsg" : "local.oplog.$main, or its options, not found in system.namespaces collection (not --master?)"
}

[joseph.wang@stage1.vpc3 ~]$ /usr/local/mongodb-linux-x86_64-1.6.3/bin/mongo localhost:4102
MongoDB shell version: 1.6.3
connecting to: localhost:4102/test
> db.printSlaveReplicationInfo()
local.sources is empty; is this db a --slave?

[joseph.wang@stage1.vpc3 local]$ ls
local.0 local.1 local.2 local.3 local.4 local.5 local.6 local.ns

Generated at Thu Feb 08 03:02:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.