Skip to content
Closed
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 @@ -400,6 +400,12 @@ class MicroBatchExecution(
// The V2 API does not have the same edge case requiring getBatch to be called
// here, so we do nothing here.
}
// Last batch was not committed successfully. We need to re-executing the batch.
// `currentBatchId` should be latest committed batch id, because we will use
// `currentBatchId` to construct `IncrementalExecution` while running the batch.
// If we use `latestBatchId` from offset log, state providers will try to load
// state map of `latestBatchId`, but the version of states is not committed.
currentBatchId = latestCommittedBatchId
} else if (latestCommittedBatchId < latestBatchId - 1) {
logWarning(s"Batch completion log latest batch id is " +
s"${latestCommittedBatchId}, which is not trailing " +
Expand Down