mirror of https://github.com/mongodb/mongo
SERVER-110334 Reenable testing the ReplicateLocalCatalogIdentifiers feature flag (#40937)
GitOrigin-RevId: 8444f6056df84e7d599e9846b257bc37371fef25
This commit is contained in:
parent
934279f644
commit
88d1427f40
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue