Files
mongo/jstests/core/clustered/clustered_collection_basic.js
Zac 591928c619 SERVER-108478 JS formatted by prettier and remove clang-format (#39656)
GitOrigin-RevId: 6c8f6aded47f260aa4f7c231b17dae3302cb1e04
2025-08-21 17:27:09 +00:00

22 lines
674 B
JavaScript

/**
* Tests inserting various cluster key values, duplicates, updates and secondary index lookups
* on a collection clustered by {_id: 1}.
*
* @tags: [
* assumes_against_mongod_not_mongos,
* assumes_no_implicit_collection_creation_after_drop,
* does_not_support_stepdowns,
* requires_fcv_53,
* ]
*/
import {ClusteredCollectionUtil} from "jstests/libs/clustered_collections/clustered_collection_util.js";
const replicatedDB = db.getSiblingDB("replicated");
const collName = "clustered_collection";
const replicatedColl = replicatedDB[collName];
replicatedColl.drop();
ClusteredCollectionUtil.testBasicClusteredCollection(replicatedDB, collName, "_id");