summaryrefslogtreecommitdiff
path: root/jstests/sharding/sync7.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/sync7.js')
-rw-r--r--jstests/sharding/sync7.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/sharding/sync7.js b/jstests/sharding/sync7.js
index a8ff0944a00..87eeaa0b36b 100644
--- a/jstests/sharding/sync7.js
+++ b/jstests/sharding/sync7.js
@@ -28,6 +28,7 @@ s.printShardingStatus();
// Make sure we can't move when our clock skew is so high
result = otherMongos.getDB( "admin" ).runCommand( { moveprimary : "test1", to : to.name } );
+printjson(result);
s.printShardingStatus();
assert.eq( result.ok, 0, "Move command should not have succeeded!" )
@@ -39,6 +40,7 @@ print(" Collection Sharded! ")
// Make sure we can't split when our clock skew is so high
result = otherMongos.getDB( "admin" ).runCommand( { split : "test1.foo", find : { a : 2 } } );
+printjson(result);
assert.eq( result.ok, 0, "Split command should not have succeeded!")
// Adjust clock back in bounds
@@ -48,16 +50,19 @@ print(" Clock adjusted back to in-bounds. ");
// Make sure we can now split
result = otherMongos.getDB( "admin" ).runCommand( { split : "test1.foo", find : { a : 2 } } );
s.printShardingStatus();
+printjson(result);
assert.eq( result.ok, 1, "Split command should have succeeded!")
// Make sure we can now move
result = otherMongos.getDB( "admin" ).runCommand( { moveprimary : "test1", to : to.name } );
s.printShardingStatus();
+printjson(result);
assert.eq( result.ok, 1, "Move command should have succeeded!" )
// Make sure we can now move again (getting the lock twice)
result = otherMongos.getDB( "admin" ).runCommand( { moveprimary : "test1", to : from.name } );
s.printShardingStatus();
+printjson(result);
assert.eq( result.ok, 1, "Move command should have succeeded again!" )
s.stop();