Skip to content

Commit 8974d76

Browse files
authored
Skip flaky tests for distributed resync until investigation (#8341)
1 parent 1477dd2 commit 8974d76

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

db/background_mgr_resync_dcp.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ func (r *ResyncManagerDCP) Run(ctx context.Context, options ResyncOptions, persi
298298
db.DbStats.Database().ResyncNumProcessed.Add(1)
299299
databaseCollection, ok := db.CollectionByID[event.CollectionID]
300300
if !ok {
301-
base.AssertfCtx(ctx, "Received DCP event for collection ID %d, but no collection found with that ID, skipping document %q", event.CollectionID, base.UD(docID))
301+
// turn to AssertfCtx in CBG-5440
302+
base.WarnfCtx(ctx, "Received DCP event for collection ID %d, but no collection found with that ID, skipping document %q", event.CollectionID, base.UD(docID))
302303
return false
303304
}
304305
databaseCollection.collectionStats.ResyncNumProcessed.Add(1)

db/background_mgr_resync_dcp_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ func TestResyncManagerDCPRunTwice(t *testing.T) {
354354
}
355355

356356
func TestResyncManagerDCPResumeStoppedProcess(t *testing.T) {
357+
if !base.UnitTestUrlIsWalrus() && base.IsEnterpriseEdition() {
358+
t.Skip("CBG-5441 skip test which flakes for distributed resync")
359+
}
357360
docsToCreate := 5000
358361
// rosmar runs too quickly, increase doc count
359362
if base.UnitTestUrlIsWalrus() {

0 commit comments

Comments
 (0)