mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-53012 Fix initial_sync_drop_collection.js when run with EMRC=false
This commit is contained in:
parent
40fb4677db
commit
b4de2e9b4f
@ -138,11 +138,11 @@ let expectedLogFor3and4 =
|
||||
|
||||
// We don't support 4.2 style two-phase drops with EMRC=false - in that configuration, the
|
||||
// collection will instead be renamed to a <db>.system.drop.* namespace before being dropped. Since
|
||||
// the cloner queries collection by UUID, it will observe the first drop phase as a rename.
|
||||
// the cloner queries collection by UUID, it may observe the first drop phase as a rename.
|
||||
// We still want to check that initial sync succeeds in such a case.
|
||||
if (TwoPhaseDropCollectionTest.supportsDropPendingNamespaces(replTest)) {
|
||||
expectedLogFor3and4 =
|
||||
'{code: 21075, attr: { cloner: "CollectionCloner", stage: "query","error": (x)=>(x.code===175 && x.codeName==="QueryPlanKilled" && x.errmsg=="collection renamed from \'" + nss + "\' to \'" + rnss + "\'. UUID " + uuid)}}';
|
||||
'{code: 21075, attr: { cloner: "CollectionCloner", stage: "query","error": (x)=>(x.code===175 && x.codeName==="QueryPlanKilled" && (x.errmsg=="collection renamed from \'" + nss + "\' to \'" + rnss + "\'. UUID " + uuid || x.errmsg=="collection dropped. UUID " + uuid))}}';
|
||||
}
|
||||
|
||||
jsTestLog("[3] Testing drop-pending between getMore calls.");
|
||||
|
Loading…
Reference in New Issue
Block a user