SERVER-110334 Reenable testing the ReplicateLocalCatalogIdentifiers feature flag (#40937)

GitOrigin-RevId: 8444f6056df84e7d599e9846b257bc37371fef25
This commit is contained in:
Thomas Goyne 2025-09-12 10:07:47 -07:00 committed by MongoDB Bot
parent 934279f644
commit 88d1427f40
2 changed files with 12 additions and 1 deletions

View File

@ -28,7 +28,6 @@
- featureFlagSessionsCollectionCoordinatorOnConfigServer
# TODO (SERVER-101672) : Delete featureFlagOplogSamplingAsyncEnabled.
- featureFlagOplogSamplingAsyncEnabled
- featureFlagReplicateLocalCatalogIdentifiers
# TODO (SERVER-108818): test primary-driven index builds in allFeatureFlag variant.
- featureFlagPrimaryDrivenIndexBuilds
# TODO SERVER-104494 SERVER-104258: Turn this back on once the issues are fixed.

View File

@ -223,6 +223,18 @@ function testIdempotency(primary, testFun, testName) {
assert.gt(ops.length, 0, "Could not find any matching ops in the oplog");
testdbs.forEach((db) => assert.commandWorked(db.dropDatabase()));
// In actual initial sync, oplog application will never try to create a collection with an ident
// that is drop pending, as the first phase won't create and then drop the collection. Reapplying
// the same oplog to a database multiple times does, however. Rather than test something which
// doesn't happen in practice (and doesn't work), remove the replicated idents from the oplog we reapply.
// TODO(SERVER-107069): Once initial sync replicates idents we may want to reevaluate this. We
// could instead wait for pending drops to complete, but that significantly slows down this test (20s -> 200s).
for (let op of ops) {
if (op.op == "c") {
delete op.o2;
}
}
if (debug) {
print(testName + ": replaying suffixes of " + ops.length + " operations");
printjson(ops);