Skip to content

Commit f41e827

Browse files
author
gosonzhang
committed
fix and trigger check
1 parent a8fa780 commit f41e827

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pulsar-broker/src/test/java/org/apache/pulsar/broker/service/ReplicatorTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ public void testReplicatorWithFailedAck() throws Exception {
16871687
Mockito.any());
16881688

16891689
// Mock the readEntriesFailed scenario:
1690-
// Use AtomicBoolean to control whether to trigger read failure, manually set true/false by test code.
1690+
// Use AtomicBoolean to control whether to trigger read failure
16911691
// Initialized to true to ensure the first readMoreEntries after replicator startup is intercepted.
16921692
AtomicBoolean isMakeReadFail = new AtomicBoolean(true);
16931693
doAnswer(invocation -> {
@@ -1719,7 +1719,6 @@ public void testReplicatorWithFailedAck() throws Exception {
17191719

17201720
// --- Test readEntriesFailed scenario ---
17211721
// isMakeReadFail is already true, replicator's readMoreEntries keeps failing
1722-
17231722
// Record current mark delete position
17241723
Position posBeforeReadFail = cursor.getMarkDeletedPosition();
17251724

0 commit comments

Comments
 (0)