summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/timeseries_server_parameters.js
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2021-06-16 11:18:52 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-16 19:48:15 +0000
commit9103cc7b17be65b107ab7c9d49ce111bb32654fc (patch)
tree9753779c82fb3755383b036ce8754cbf2a7f9fd8 /jstests/noPassthrough/timeseries_server_parameters.js
parent0f4e555b24aa5441c078e58807c60796547a20cd (diff)
downloadmongo-9103cc7b17be65b107ab7c9d49ce111bb32654fc.tar.gz
SERVER-56268 Remove timeseriesBucketsCollectionClusterById server parameter
Diffstat (limited to 'jstests/noPassthrough/timeseries_server_parameters.js')
-rw-r--r--jstests/noPassthrough/timeseries_server_parameters.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/jstests/noPassthrough/timeseries_server_parameters.js b/jstests/noPassthrough/timeseries_server_parameters.js
index 760ffd429a7..6365203d3e8 100644
--- a/jstests/noPassthrough/timeseries_server_parameters.js
+++ b/jstests/noPassthrough/timeseries_server_parameters.js
@@ -12,35 +12,6 @@
load("jstests/core/timeseries/libs/timeseries.js");
load("jstests/noPassthrough/libs/server_parameter_helpers.js");
-// Test that collection clustering can be disabled on the buckets collection, and that it behaves
-// correctly in a replicated environment.
-(() => {
- const replSet = new ReplSetTest({
- nodes: 2,
- nodeOptions: {setParameter: {timeseriesBucketsCollectionClusterById: false}},
- });
- replSet.startSet();
- replSet.initiate();
-
- const primary = replSet.getPrimary();
- if (!TimeseriesTest.timeseriesCollectionsEnabled(primary)) {
- jsTestLog("Skipping test case because time-series collections are not enabled.");
- replSet.stopSet();
- return;
- }
-
- const testDB = primary.getDB('test');
- assert.commandWorked(testDB.createCollection('ts', {timeseries: {timeField: 'time'}}));
- testDB.ts.insert({time: new Date()});
-
- let res = assert.commandWorked(
- testDB.runCommand({listCollections: 1, filter: {name: 'system.buckets.ts'}}));
- let options = res.cursor.firstBatch[0].options;
- assert(!options.clusteredIndex);
-
- replSet.stopSet();
-})();
-
// Valid parameter values are in the range [0, infinity).
testNumericServerParameter('timeseriesBucketMaxCount',
true /*isStartupParameter*/,