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 @@ -666,7 +666,9 @@ private Optional<BufferAndAvailability> pullPriorityFromSubpartitionView() throw

Buffer.DataType expectedNextDataType = next.getNextDataType();
if (!expectedNextDataType.hasPriority()) {
// Reset hasPendingPriorityEvent to false if no more priority event.
// Latent lost-wakeup: this lock-free clear can clobber a concurrent set-true in
// notifyPriorityEvent(). Safe today only because Flink runs no concurrent unaligned
// checkpoints, so at most one priority barrier is ever pending.
hasPendingPriorityEvent = false;
// Correct nextDataType: if recoveredBuffers is not empty, the actual next element to
// consume is from recoveredBuffers, not from subpartitionView.
Expand Down