Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,11 @@ protected void extractProgressReportEvent(final PipeRealtimeEvent event) {
// Since the batch and retry queue no longer need the heartbeat event to trigger
// And the progress report event can trigger the processor calculation because it's not reported
// yet
while (((PipeRealtimeEvent) pendingQueue.peekLast()).getEvent() instanceof PipeHeartbeatEvent) {
while (true) {
final PipeRealtimeEvent lastEvent = ((PipeRealtimeEvent) pendingQueue.peekLast());
if (lastEvent == null || !(lastEvent.getEvent() instanceof PipeHeartbeatEvent)) {
break;
}
pendingQueue.pollLast();
}
if (pendingQueue.peekLast() instanceof ProgressReportEvent) {
Expand Down
Loading