Skip to content

Commit e81eeac

Browse files
committed
Change break to continue
1 parent ab322dd commit e81eeac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/SerialReplicationSourceWALReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ protected void readWALEntries(WALEntryStream entryStream, WALEntryBatch batch)
9696
break;
9797
}
9898
sleepMultiplier = sleep(sleepMultiplier);
99-
// Always make sure to break after handling the exception.
99+
// Always make sure to continue/break from the loop after handling the exception.
100100
// Otherwise we will drop down below into logic to push the entry,
101101
// but since we don't know if the entry can be pushed we may push
102102
// the entry out of order, breaking serial replication guarantees.
103-
break;
103+
continue;
104104
}
105105
// arrive here means we can push the entry, record the last sequence id
106106
batch.setLastSeqId(Bytes.toString(entry.getKey().getEncodedRegionName()),

0 commit comments

Comments
 (0)