summaryrefslogtreecommitdiff
path: root/jstests/sharding/mongos_get_shard_version.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/mongos_get_shard_version.js')
-rw-r--r--jstests/sharding/mongos_get_shard_version.js19
1 files changed, 3 insertions, 16 deletions
diff --git a/jstests/sharding/mongos_get_shard_version.js b/jstests/sharding/mongos_get_shard_version.js
index 693dc7cf5af..9a7345e4b5f 100644
--- a/jstests/sharding/mongos_get_shard_version.js
+++ b/jstests/sharding/mongos_get_shard_version.js
@@ -38,22 +38,9 @@ res = st.s.adminCommand({getShardVersion: ns, fullMetadata: true});
assert.commandWorked(res);
assert.eq(res.version.t, 1);
assert.eq(res.version.i, 0);
-if (jsTestOptions().mongosBinVersion == "last-stable") {
- assert.eq(undefined, res.chunks);
-
- // The _id format for config.chunks documents was changed in 4.4, so in the mixed version suite
- // the below size arithmetic does not hold and splitting chunks will fail with BSONObjectTooBig.
- // A mongos with the last-stable binary does not support returning chunks in getShardVersion, so
- // we can just return early.
- //
- // TODO SERVER-44034: Remove this branch when 4.4 becomes last stable.
- st.stop();
- return;
-} else {
- assert.eq(1, res.chunks.length);
- assert.eq(min, res.chunks[0][0]);
- assert.eq(max, res.chunks[0][1]);
-}
+assert.eq(1, res.chunks.length);
+assert.eq(min, res.chunks[0][0]);
+assert.eq(max, res.chunks[0][1]);
// Split the existing chunks to create a large number of chunks (> 16MB).
// This needs to be done twice since the BSONObj size limit also applies