-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.6.3
-
Component/s: Tools
-
None
-
ALL
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
Running this command worked both via mongos & directly on the replicaset until the primary node was replaced with a newly built node.
The new node is of higher spec than the previous i.e.
Initially we had:
Replicaset-node1 [PRIMARY]
Replicaset-node2
Replicaset-node3 [ARBITER}
Then added Replicaset-node4 and removed Replicaset-node1
Final config:
Replicaset-node2
Replicaset-node3 [ARBITER}
Replicaset-node4 [PRIMARY]
After that benchRun started reporting: Error: invalid parameter: expected an object ()
replica1:PRIMARY> replica1:PRIMARY> use test; switched to db test replica1:PRIMARY> db.foo.drop() true replica1:PRIMARY> db.foo.insert({_id:1}) WriteResult({ "nInserted" : 1 }) replica1:PRIMARY> ops = [{op: "findOne", ns: "test.foo", query: {_id:1}}, ... {op: "update",ns: "test.foo", query: {_id:1}, update: {$inc: {x:1}}}] [ { "op" : "findOne", "ns" : "test.foo", "query" : { "_id" : 1 } }, { "op" : "update", "ns" : "test.foo", "query" : { "_id" : 1 }, "update" : { "$inc" : { "x" : 1 } } } ] replica1:PRIMARY> for (var x = 1; x<=256; x*=2) { ... res = benchRun({ ... parallel : x, ... seconds: 10, ... ops:ops ... }); ... print ("threads: " + x + "\t queries/sec: " + res.query); ... } 2014-11-07T15:37:43.481+0000 Error: invalid parameter: expected an object ()