Skip to content

Commit 982f3e3

Browse files
committed
ninja - fix MutationJournalReplayTest.testReplayFlushed
1 parent f8eb131 commit 982f3e3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/unit/org/apache/cassandra/replication/MutationJournalReplayTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ class Bounds
183183
}
184184
}
185185

186+
// Persisting needsReplay=false is deferred until LogStatePersister drains the
187+
// queue. There's no persister in this test, so drain manually before replay.
188+
journal.drainCleanup(journal.snapshotPendingClearReplay());
189+
186190
List<Mutation> replayed = new ArrayList<>();
187191
journal.replay(new DeserializedRecordConsumer<ShortMutationId, Mutation>(MutationJournal.MutationSerializer.INSTANCE)
188192
{

0 commit comments

Comments
 (0)