-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
recovered stream job requires checkpoint barrier
- Loading branch information
Showing
3 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,10 +159,12 @@ impl TrackingJob { | |
} | ||
} | ||
|
||
pub(crate) fn is_barrier(&self) -> bool { | ||
pub(crate) fn is_checkpoint(&self) -> bool { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kwannoel
Author
Contributor
|
||
match self { | ||
TrackingJob::Recovered(_) => true, | ||
TrackingJob::New(command) => command.context.kind.is_barrier(), | ||
TrackingJob::New(command) => { | ||
command.context.kind.is_initial() || command.context.kind.is_checkpoint() | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Could you explain more of this method?