dawidwys commented on a change in pull request #16361:
URL: https://github.com/apache/flink/pull/16361#discussion_r665371432
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/checkpointing/CheckpointBarrierHandler.java
##########
@@ -153,6 +153,8 @@ protected void markAlignmentEnd() {
}
protected void markAlignmentEnd(long alignmentDuration) {
+ checkState(alignmentDuration >= 0 ||
latestAlignmentDurationNanos.isDone());
Review comment:
What is the case when `alignmentDuration < 0 &&
!latestAlignmentDurationNanos.isDone()` ? Is it a valid scenario? If it is
could you add a comment for it here?
Lastly, would be good to give some kind of a message here in case it is hit
by a user.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]