summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/no_balance_collection.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/jstests/noPassthroughWithMongod/no_balance_collection.js b/jstests/noPassthroughWithMongod/no_balance_collection.js
index 0106f2c6e9e..e4f2aaf5ce6 100644
--- a/jstests/noPassthroughWithMongod/no_balance_collection.js
+++ b/jstests/noPassthroughWithMongod/no_balance_collection.js
@@ -1,10 +1,22 @@
// Tests whether the noBalance flag disables balancing for collections
// @tags: [requires_sharding]
+(function() {
+"use strict";
+
load("jstests/sharding/libs/find_chunks_util.js");
+load("jstests/libs/feature_flag_util.js");
var st = new ShardingTest({shards: 2, mongos: 1});
+// TODO SERVER-66378 adapt this test for data size aware balancing
+if (FeatureFlagUtil.isEnabled(st.configRS.getPrimary().getDB('admin'),
+ "BalanceAccordingToDataSize")) {
+ jsTestLog("Skipping as featureFlagBalanceAccordingToDataSize is enabled");
+ st.stop();
+ return;
+}
+
// First, test that shell helpers require an argument
assert.throws(sh.disableBalancing, [], "sh.disableBalancing requires a collection");
assert.throws(sh.enableBalancing, [], "sh.enableBalancing requires a collection");
@@ -109,3 +121,4 @@ if (lastMigration == null) {
}
st.stop();
+}());