diff options
author | Pierlauro Sciarelli <pierlauro.sciarelli@mongodb.com> | 2022-05-19 13:53:19 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-19 15:15:57 +0000 |
commit | 9e4f58aa6bb73cbcd7e3f9f5a6dbcbc5c88b8254 (patch) | |
tree | 017b7540bcf46f41c28c9c973c531b8744d2a913 /jstests/noPassthroughWithMongod | |
parent | 0419b6d14796177749c1921fb787a8c1d0e1faa3 (diff) | |
download | mongo-9e4f58aa6bb73cbcd7e3f9f5a6dbcbc5c88b8254.tar.gz |
SERVER-65816 Change balancer policy to balance on data size rather than number of chunks
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r-- | jstests/noPassthroughWithMongod/no_balance_collection.js | 13 |
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(); +}()); |