summaryrefslogtreecommitdiff
path: root/jstests/slowNightly
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-11-21 00:27:20 -0500
committerEliot Horowitz <eliot@10gen.com>2011-11-21 00:27:20 -0500
commitbaa9fef42ef04f6cfad0e7608f7c6636e46a0ed3 (patch)
tree2fa8b8ac9d505a19491a76957e9437fb6355dbb8 /jstests/slowNightly
parent6b7bbe84e4b1607397263ad5415081f23be87fc5 (diff)
downloadmongo-baa9fef42ef04f6cfad0e7608f7c6636e46a0ed3.tar.gz
handle non-sharded query not master errors SERVER-4324
Diffstat (limited to 'jstests/slowNightly')
-rw-r--r--jstests/slowNightly/replica_set_shard_version.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/jstests/slowNightly/replica_set_shard_version.js b/jstests/slowNightly/replica_set_shard_version.js
index 7b155550f25..ca456dcc177 100644
--- a/jstests/slowNightly/replica_set_shard_version.js
+++ b/jstests/slowNightly/replica_set_shard_version.js
@@ -44,8 +44,20 @@ printjson( coll.findOne() )
end = new Date();
-print( "time to work: " + ( ( end.getTime() - start.getTime() ) / 1000 ) + " seconds" );
+print( "time to work for primary: " + ( ( end.getTime() - start.getTime() ) / 1000 ) + " seconds" );
assert.gt( 3 , iteratioons );
+
+// now check secondary
+
+sadmin.runCommand({ replSetStepDown : 3000, force : true })
+other = new Mongo( mongosA.host );
+other.setSlaveOk( true );
+other = other.getCollection( jsTestName() + ".coll" );
+
+print( "eliot: " + tojson( other.findOne() ) );
+
+
+
st.stop()