Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

buildbot and SERVER-4526 mongos_no_detect_sharding.js split logic may…

… change, explicitly check for shard versioning turned on
  • Loading branch information...
commit 6fb6a11f5879d0ca0bc36b07e4b25b03f74a468c 1 parent 36ae878
Greg Studer authored milkie committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 jstests/sharding/mongos_no_detect_sharding.js
View
5 jstests/sharding/mongos_no_detect_sharding.js
@@ -20,6 +20,8 @@ print( "Sharding collection..." )
var admin = mongos.getDB("admin")
+assert.eq( coll.getShardVersion().ok, 0 )
+
admin.runCommand({ enableSharding : "test" })
admin.runCommand({ shardCollection : "test.foo", key : { _id : 1 } })
@@ -34,6 +36,7 @@ coll.getDB().getLastError()
config.printShardingStatus( true )
-assert.gt( config.chunks.find({ _id : /test.foo/ }).itcount(), 1 )
+assert.eq( coll.getShardVersion().ok, 1 )
+assert.eq( 101, coll.find().itcount() )
st.stop()
Please sign in to comment.
Something went wrong with that request. Please try again.