diff options
author | Louis Williams <louis.williams@mongodb.com> | 2022-12-15 09:27:38 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-12-15 10:02:47 +0000 |
commit | d4082c855140f25957d9ad9be6b8056413be9d3e (patch) | |
tree | 4cd04275c9258084bcad00c69753723e22a4812e /jstests/core | |
parent | d3362e6dcef0d22074ef6c4aff8f6fb64816d238 (diff) | |
download | mongo-d4082c855140f25957d9ad9be6b8056413be9d3e.tar.gz |
SERVER-69314 Remove featureFlagClusteredIndexes
Diffstat (limited to 'jstests/core')
-rw-r--r-- | jstests/core/timeseries/clustered_index_options.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/jstests/core/timeseries/clustered_index_options.js b/jstests/core/timeseries/clustered_index_options.js index c61ee063a85..efd4f221bb1 100644 --- a/jstests/core/timeseries/clustered_index_options.js +++ b/jstests/core/timeseries/clustered_index_options.js @@ -44,7 +44,6 @@ res = assert.eq(options, res.cursor.firstBatch[0].options); assert.commandWorked(testDB.dropDatabase()); -// Fails with different error code depending on whether featureFlagClusteredIndexes is enabled. assert.commandFailedWithCode(testDB.createCollection(bucketsCollName, {clusteredIndex: {}}), [ErrorCodes.TypeMismatch, 40414]); assert.commandFailedWithCode(testDB.createCollection(bucketsCollName, {clusteredIndex: 'a'}), @@ -54,16 +53,13 @@ assert.commandFailedWithCode( {clusteredIndex: true, idIndex: {key: {_id: 1}, name: '_id_'}}), ErrorCodes.InvalidOptions); -// Fails with different error code depending on whether featureFlagClusteredIndexes is enabled. assert.commandFailedWithCode(testDB.createCollection(tsCollName, {clusteredIndex: true}), [ErrorCodes.InvalidOptions, 5979703]); assert.commandFailedWithCode(testDB.createCollection('test', {clusteredIndex: true}), [ErrorCodes.InvalidOptions, 5979703]); // Using the 'expireAfterSeconds' option on any namespace other than a time-series namespace or a -// clustered time-series buckets namespace should fail (provdided featureFlagClusteredIndexes is -// disabled). Otherwise, collection creation must specify the clusteredIndex option to use -// expireAfterSeconds. +// clustered time-series buckets namespace should fail. assert.commandFailedWithCode(testDB.createCollection('test', {expireAfterSeconds: 10}), ErrorCodes.InvalidOptions); assert.commandFailedWithCode(testDB.createCollection(bucketsCollName, {expireAfterSeconds: 10}), |