You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/12/03 11:31:00 UTC

[GitHub] [flink] rkhachatryan opened a new pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

rkhachatryan opened a new pull request #14057:
URL: https://github.com/apache/flink/pull/14057


   This is an updated version of #13827 (draft) to pass the tests and address remaining feedback.
   
   Note: some commits are on their way to master and should be dropped before merging.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r540446583



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/CheckpointBarrier.java
##########
@@ -119,6 +119,6 @@ public boolean isCheckpoint() {
 	}
 
 	public CheckpointBarrier asUnaligned() {
-		return checkpointOptions.isUnalignedCheckpoint() ? this : new CheckpointBarrier(getId(), getTimestamp(), getCheckpointOptions().asTimedOut());
+		return checkpointOptions.isUnalignedCheckpoint() ? this : new CheckpointBarrier(getId(), getTimestamp(), getCheckpointOptions().toUnaligned());

Review comment:
       No, I think it belongs to the right commit. With `CheckpointOptions` hotfix/refactoring, this method converts it to `unaligned`, which can't be timed out.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r543278831



##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -193,6 +202,11 @@ private CheckpointBarrierBehaviourController chooseController(CheckpointBarrier
 
 	private boolean canTimeout(CheckpointBarrier barrier) {
 		return barrier.getCheckpointOptions().isTimeoutable() &&
-			barrier.getCheckpointOptions().getAlignmentTimeout() < (System.currentTimeMillis() - barrier.getTimestamp());
+			barrier.getId() <= lastSeenBarrier &&
+			barrier.getCheckpointOptions().getAlignmentTimeout() * 1_000_000 < (System.nanoTime() - firstBarrierArrivalTime);
+	}
+
+	private long getArrivalTime(CheckpointBarrier announcedBarrier) {
+		return announcedBarrier.getCheckpointOptions().isTimeoutable() ? System.nanoTime() : Long.MAX_VALUE;

Review comment:
       With a single input, this is not an alignment issue but a (related) back-pressure issue. And I think this is the right way to solve it: 
   > Active timeout would alleviate this problem though.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e470bcdae1694f36a466767a457a54006432e5a8 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505) 
   * 64f5b48580f748cc15bc7ee65db45dd937b4821a UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 107985b487f186beaeddd7187a383fd268b997db Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * bcd846138434e9990c388d970ff4d313c5099978 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560) 
   * 94b400f3a36ba2d65950b196a9d2650effb64cdc UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r543280004



##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -114,6 +114,7 @@ public void barrierAnnouncement(
 			lastSeenBarrier = barrier.getId();
 			firstBarrierArrivalTime = getArrivalTime(barrier);
 		}
+		activeController = chooseController(barrier);

Review comment:
       But there is a `preProcessFirstBarrier` before the switch in `barrierReceived`.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * cbce4fc8b854e23dc7128b161336dc09e2d81e03 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     } ]
   }-->
   ## CI report:
   
   * 6435a7da42247e8a59fc8bd3159470d761bd7127 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594) 
   * b3aa80f54805a5ca4b583c531c35aa64bf3d8d55 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479) Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 6435a7da42247e8a59fc8bd3159470d761bd7127 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594) 
   * b3aa80f54805a5ca4b583c531c35aa64bf3d8d55 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479) Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482) 
   * 107985b487f186beaeddd7187a383fd268b997db UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904",
       "triggerID" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10966",
       "triggerID" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a74097650256dde7e570ea1cd98bbaa31142799a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "a74097650256dde7e570ea1cd98bbaa31142799a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f984efa3d7eedacd36d5f2c12f1256a10cfbc87d",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10986",
       "triggerID" : "f984efa3d7eedacd36d5f2c12f1256a10cfbc87d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f984efa3d7eedacd36d5f2c12f1256a10cfbc87d",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=11105",
       "triggerID" : "748864186",
       "triggerType" : "MANUAL"
     } ]
   }-->
   ## CI report:
   
   * a74097650256dde7e570ea1cd98bbaa31142799a UNKNOWN
   * f984efa3d7eedacd36d5f2c12f1256a10cfbc87d Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10986) Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=11105) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904",
       "triggerID" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10966",
       "triggerID" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a74097650256dde7e570ea1cd98bbaa31142799a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "a74097650256dde7e570ea1cd98bbaa31142799a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c98b6606d03656b144f18c76a8af8b14c0b65b17 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904) 
   * 8e85c514fcd09a767d76498da227d741e1b2d7e9 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10966) 
   * a74097650256dde7e570ea1cd98bbaa31142799a UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r544865125



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java
##########
@@ -451,11 +451,20 @@ public void onBuffer(Buffer buffer, int sequenceNumber, int backlog) throws IOEx
 				}
 				else {
 					receivedBuffers.add(sequenceBuffer);
-					channelStatePersister.maybePersist(buffer);
 					if (dataType.requiresAnnouncement()) {
 						firstPriorityEvent = addPriorityBuffer(announce(sequenceBuffer));
 					}
 				}
+				channelStatePersister
+					.checkForBarrier(sequenceBuffer.buffer)
+					.filter(id -> id > lastBarrierId)
+					.ifPresent(id -> {
+						// checkpoint was not yet started by task thread,
+						// so remember the numbers of buffers to spill for the time when it will be started
+						lastBarrierId = id;
+						lastBarrierSequenceNumber = sequenceBuffer.sequenceNumber;
+					});
+				channelStatePersister.maybePersist(buffer);

Review comment:
       > Side question, shouldn't those two fixes be separate commits?
   
   They were in the beginning, but it seemed to me just way too many commits :) So I tried to group some related changes. I can extract it if you prefer.
   
   > And what about test coverage for those changes?
   
   As [noted](https://github.com/apache/flink/pull/14057#discussion_r543678627) above
   >  I didn't add a unit test as after the other fixes in master (#14052) this change is not strictly necessary
   > (though I think it's still less error-prone to not update SQN unnecessarily).




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r543676863



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/LocalInputChannel.java
##########
@@ -229,11 +229,8 @@ public void run() {
 
 		numBytesIn.inc(buffer.getSize());
 		numBuffersIn.inc();
-		if (buffer.getDataType().hasPriority()) {
-			channelStatePersister.checkForBarrier(buffer);
-		} else {
-			channelStatePersister.maybePersist(buffer);
-		}
+		channelStatePersister.checkForBarrier(buffer);
+		channelStatePersister.maybePersist(buffer);

Review comment:
       I've added `LocalInputChannelTest.testNoDataPersistedAfterReceivingAlignedBarrier`.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904",
       "triggerID" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10966",
       "triggerID" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a74097650256dde7e570ea1cd98bbaa31142799a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "a74097650256dde7e570ea1cd98bbaa31142799a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f984efa3d7eedacd36d5f2c12f1256a10cfbc87d",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10986",
       "triggerID" : "f984efa3d7eedacd36d5f2c12f1256a10cfbc87d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * a74097650256dde7e570ea1cd98bbaa31142799a UNKNOWN
   * f984efa3d7eedacd36d5f2c12f1256a10cfbc87d Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10986) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904",
       "triggerID" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c98b6606d03656b144f18c76a8af8b14c0b65b17 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * cbce4fc8b854e23dc7128b161336dc09e2d81e03 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903) 
   * c98b6606d03656b144f18c76a8af8b14c0b65b17 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 107985b487f186beaeddd7187a383fd268b997db Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483) 
   * e470bcdae1694f36a466767a457a54006432e5a8 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r543675851



##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -114,6 +114,7 @@ public void barrierAnnouncement(
 			lastSeenBarrier = barrier.getId();
 			firstBarrierArrivalTime = getArrivalTime(barrier);
 		}
+		activeController = chooseController(barrier);

Review comment:
       I've added `AlternatingControllerTest.testSwitchToUnalignedByUpstream`.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot commented on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726341844


   Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
   to review your pull request. We will use this comment to track the progress of the review.
   
   
   ## Automated Checks
   Last check on commit 86f96719e726d0225aa7201bb43f7c315aa74eea (Thu Nov 12 21:05:14 UTC 2020)
   
   **Warnings:**
    * No documentation files were touched! Remember to keep the Flink docs up to date!
   
   
   <sub>Mention the bot in a comment to re-run the automated checks.</sub>
   ## Review Progress
   
   * ❓ 1. The [description] looks good.
   * ❓ 2. There is [consensus] that the contribution should go into to Flink.
   * ❓ 3. Needs [attention] from.
   * ❓ 4. The change fits into the overall [architecture].
   * ❓ 5. Overall code [quality] is good.
   
   Please see the [Pull Request Review Guide](https://flink.apache.org/contributing/reviewing-prs.html) for a full explanation of the review process.<details>
    The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot approve description` to approve one or more aspects (aspects: `description`, `consensus`, `architecture` and `quality`)
    - `@flinkbot approve all` to approve all aspects
    - `@flinkbot approve-until architecture` to approve everything until `architecture`
    - `@flinkbot attention @username1 [@username2 ..]` to require somebody's attention
    - `@flinkbot disapprove architecture` to remove an approval you gave earlier
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r543675153



##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlignedController.java
##########
@@ -120,6 +122,12 @@ public void obsoleteBarrierReceived(
 		resumeConsumption(channelInfo);
 	}
 
+	protected void resetPendingCheckpoint(long cancelledId) {
+		for (final CheckpointableInput input : inputs) {
+			input.checkpointStopped(cancelledId);
+		}
+	}
+

Review comment:
       I've added `AlternatingControllerTest.testChannelResetOnNewBarrier`.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-737884317


   @flinkbot run azure


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 64f5b48580f748cc15bc7ee65db45dd937b4821a Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522) 
   * cbce4fc8b854e23dc7128b161336dc09e2d81e03 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904",
       "triggerID" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10966",
       "triggerID" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c98b6606d03656b144f18c76a8af8b14c0b65b17 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904) 
   * 8e85c514fcd09a767d76498da227d741e1b2d7e9 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10966) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e470bcdae1694f36a466767a457a54006432e5a8 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 64f5b48580f748cc15bc7ee65db45dd937b4821a Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * a0225769113bc5163d40f7dfa600f7636629a530 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904",
       "triggerID" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10966",
       "triggerID" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a74097650256dde7e570ea1cd98bbaa31142799a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "a74097650256dde7e570ea1cd98bbaa31142799a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f984efa3d7eedacd36d5f2c12f1256a10cfbc87d",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "f984efa3d7eedacd36d5f2c12f1256a10cfbc87d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8e85c514fcd09a767d76498da227d741e1b2d7e9 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10966) 
   * a74097650256dde7e570ea1cd98bbaa31142799a UNKNOWN
   * f984efa3d7eedacd36d5f2c12f1256a10cfbc87d UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904",
       "triggerID" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10966",
       "triggerID" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a74097650256dde7e570ea1cd98bbaa31142799a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "a74097650256dde7e570ea1cd98bbaa31142799a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f984efa3d7eedacd36d5f2c12f1256a10cfbc87d",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10986",
       "triggerID" : "f984efa3d7eedacd36d5f2c12f1256a10cfbc87d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8e85c514fcd09a767d76498da227d741e1b2d7e9 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10966) 
   * a74097650256dde7e570ea1cd98bbaa31142799a UNKNOWN
   * f984efa3d7eedacd36d5f2c12f1256a10cfbc87d Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10986) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e470bcdae1694f36a466767a457a54006432e5a8 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505) 
   * 64f5b48580f748cc15bc7ee65db45dd937b4821a Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r543676375



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java
##########
@@ -569,14 +569,23 @@ public void convertToPriorityEvent(int sequenceNumber) throws IOException {
 				"Attempted to convertToPriorityEvent an event [%s] that has already been prioritized [%s]",
 				toPrioritize,
 				numPriorityElementsBeforeRemoval);
+			// set the priority flag (checked on poll)
+			// don't convert the barrier itself (barrier controller might not have been switched yet)
+			AbstractEvent e = EventSerializer.fromBuffer(toPrioritize.buffer, this.getClass().getClassLoader());
+			toPrioritize.buffer.setReaderIndex(0);
+			toPrioritize = new SequenceBuffer(EventSerializer.toBuffer(e, true), toPrioritize.sequenceNumber);
 			firstPriorityEvent = addPriorityBuffer(toPrioritize); 	// note that only position of the element is changed
 																	// converting the event itself would require switching the controller sooner
 		}
 		if (firstPriorityEvent) {
-			notifyPriorityEvent(sequenceNumber);
+			notifyPriorityEventForce(); // use force here because the barrier SQN might be seen by gate during the announcement

Review comment:
       Rephrased as:
   ```
   // forcibly notify about the priority event
   // instead of passing barrier SQN to be checked
   // because this SQN might have be seen by the input gate during the announcement
   ```
   




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 86f96719e726d0225aa7201bb43f7c315aa74eea Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542) 
   * bcd846138434e9990c388d970ff4d313c5099978 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot commented on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 86f96719e726d0225aa7201bb43f7c315aa74eea UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 86f96719e726d0225aa7201bb43f7c315aa74eea Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * a0225769113bc5163d40f7dfa600f7636629a530 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589) 
   * 6435a7da42247e8a59fc8bd3159470d761bd7127 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 107985b487f186beaeddd7187a383fd268b997db Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483) 
   * e470bcdae1694f36a466767a457a54006432e5a8 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] pnowojski commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
pnowojski commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r540858619



##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -114,6 +114,7 @@ public void barrierAnnouncement(
 			lastSeenBarrier = barrier.getId();
 			firstBarrierArrivalTime = getArrivalTime(barrier);
 		}
+		activeController = chooseController(barrier);

Review comment:
       But doesn't it mean we should support time outing on every UC barrier? And it looks like we are doing that:
   ```
   	@Override
   	public Optional<CheckpointBarrier> barrierReceived(InputChannelInfo channelInfo, CheckpointBarrier barrier) throws IOException, CheckpointException {
   		if (barrier.getCheckpointOptions().isUnalignedCheckpoint() && activeController == alignedController) {
   			barrier = barrier.asUnaligned();
   			switchToUnaligned(channelInfo, barrier);
   			activeController.barrierReceived(channelInfo, barrier);
   			return Optional.of(barrier);
   		}
   ```

##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -146,28 +146,7 @@ private void switchToUnaligned(
 
 	@Override
 	public Optional<CheckpointBarrier> postProcessLastBarrier(InputChannelInfo channelInfo, CheckpointBarrier barrier) throws IOException, CheckpointException {
-		Optional<CheckpointBarrier> maybeTimeOut = asTimedOut(barrier);
-		if (maybeTimeOut.isPresent() && activeController == alignedController) {
-			switchToUnaligned(channelInfo, maybeTimeOut.get());
-			checkState(activeController == unalignedController);
-			checkState(!activeController.postProcessLastBarrier(channelInfo, maybeTimeOut.orElse(barrier)).isPresent());
-			return maybeTimeOut;
-		}
-
-		barrier = maybeTimeOut.orElse(barrier);
-		if (barrier.getCheckpointOptions().isUnalignedCheckpoint()) {
-			checkState(activeController == unalignedController);
-			checkState(!activeController.postProcessLastBarrier(channelInfo, maybeTimeOut.orElse(barrier)).isPresent());
-			return Optional.empty();
-		}
-		else {
-			checkState(activeController == alignedController);
-			Optional<CheckpointBarrier> triggerResult = activeController.postProcessLastBarrier(
-				channelInfo,
-				barrier);
-			checkState(triggerResult.isPresent());
-			return triggerResult;
-		}

Review comment:
       > Besides, why timeout alignment if it's the last barrier? This essentially means that alignment is done.
   
   The alignment is done, but that's just input. As we do not have code to timeout outputs, it's better to timeout to UC even if the alignment was completed (although too late). Think especially about a case with just a single input channel.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 6435a7da42247e8a59fc8bd3159470d761bd7127 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594) 
   * b3aa80f54805a5ca4b583c531c35aa64bf3d8d55 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 6435a7da42247e8a59fc8bd3159470d761bd7127 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594) 
   * b3aa80f54805a5ca4b583c531c35aa64bf3d8d55 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r543678627



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java
##########
@@ -451,11 +451,17 @@ public void onBuffer(Buffer buffer, int sequenceNumber, int backlog) throws IOEx
 				}
 				else {
 					receivedBuffers.add(sequenceBuffer);
-					channelStatePersister.maybePersist(buffer);
 					if (dataType.requiresAnnouncement()) {
 						firstPriorityEvent = addPriorityBuffer(announce(sequenceBuffer));
 					}
 				}
+				channelStatePersister.checkForBarrier(sequenceBuffer.buffer).ifPresent(id -> {
+					// checkpoint was not yet started by task thread,
+					// so remember the numbers of buffers to spill for the time when it will be started
+					lastBarrierSequenceNumber = sequenceBuffer.sequenceNumber;
+					lastBarrierId = id;
+				});
+				channelStatePersister.maybePersist(buffer);

Review comment:
       I didn't add a unit test as after the other fixes in master (#14052) this change is not strictly necessary
   (though I think it's still less error-prone to not update SQN unnecessarily).




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904",
       "triggerID" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10966",
       "triggerID" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a74097650256dde7e570ea1cd98bbaa31142799a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "a74097650256dde7e570ea1cd98bbaa31142799a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f984efa3d7eedacd36d5f2c12f1256a10cfbc87d",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10986",
       "triggerID" : "f984efa3d7eedacd36d5f2c12f1256a10cfbc87d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f984efa3d7eedacd36d5f2c12f1256a10cfbc87d",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=11105",
       "triggerID" : "748864186",
       "triggerType" : "MANUAL"
     } ]
   }-->
   ## CI report:
   
   * a74097650256dde7e570ea1cd98bbaa31142799a UNKNOWN
   * f984efa3d7eedacd36d5f2c12f1256a10cfbc87d Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10986) Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=11105) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 94b400f3a36ba2d65950b196a9d2650effb64cdc Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r543283061



##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -146,28 +146,7 @@ private void switchToUnaligned(
 
 	@Override
 	public Optional<CheckpointBarrier> postProcessLastBarrier(InputChannelInfo channelInfo, CheckpointBarrier barrier) throws IOException, CheckpointException {
-		Optional<CheckpointBarrier> maybeTimeOut = asTimedOut(barrier);
-		if (maybeTimeOut.isPresent() && activeController == alignedController) {
-			switchToUnaligned(channelInfo, maybeTimeOut.get());
-			checkState(activeController == unalignedController);
-			checkState(!activeController.postProcessLastBarrier(channelInfo, maybeTimeOut.orElse(barrier)).isPresent());
-			return maybeTimeOut;
-		}
-
-		barrier = maybeTimeOut.orElse(barrier);
-		if (barrier.getCheckpointOptions().isUnalignedCheckpoint()) {
-			checkState(activeController == unalignedController);
-			checkState(!activeController.postProcessLastBarrier(channelInfo, maybeTimeOut.orElse(barrier)).isPresent());
-			return Optional.empty();
-		}
-		else {
-			checkState(activeController == alignedController);
-			Optional<CheckpointBarrier> triggerResult = activeController.postProcessLastBarrier(
-				channelInfo,
-				barrier);
-			checkState(triggerResult.isPresent());
-			return triggerResult;
-		}

Review comment:
       Isn't it enough to just convert the barrier upon triggering checkpoint in subtask?
   
   This is what I've done in `[FLINK-19681][checkpointing] Use converted barrier after disabling alignment`. It is needed anyways for correct handling in `SubtaskCheckpointCoordinatorImpl`.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904",
       "triggerID" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * cbce4fc8b854e23dc7128b161336dc09e2d81e03 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903) 
   * c98b6606d03656b144f18c76a8af8b14c0b65b17 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * bcd846138434e9990c388d970ff4d313c5099978 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560) 
   * 94b400f3a36ba2d65950b196a9d2650effb64cdc Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] pnowojski merged pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
pnowojski merged pull request #14057:
URL: https://github.com/apache/flink/pull/14057


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] pnowojski commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
pnowojski commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r540854209



##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -193,6 +202,11 @@ private CheckpointBarrierBehaviourController chooseController(CheckpointBarrier
 
 	private boolean canTimeout(CheckpointBarrier barrier) {
 		return barrier.getCheckpointOptions().isTimeoutable() &&
-			barrier.getCheckpointOptions().getAlignmentTimeout() < (System.currentTimeMillis() - barrier.getTimestamp());
+			barrier.getId() <= lastSeenBarrier &&
+			barrier.getCheckpointOptions().getAlignmentTimeout() * 1_000_000 < (System.nanoTime() - firstBarrierArrivalTime);
+	}
+
+	private long getArrivalTime(CheckpointBarrier announcedBarrier) {
+		return announcedBarrier.getCheckpointOptions().isTimeoutable() ? System.nanoTime() : Long.MAX_VALUE;

Review comment:
       > Why, could you explain?
   
   On a second thought, maybe it will partially, but not fully as well.  guess we still have the code, that we can timeout to UC on the last processed barrier? So in case of single channel:
   1. announcement is processed (first announcement will never timeout in this version) it won't timeout
   2. barrier will be processed, and only it can timeout
   
   So a timeout on the first network exchange will work worse. That's a bit problematic, especially for simple jobs, with for example just a single exchange. Previous version would cut the checkpointing time by half, this version will do worse than that, in a way that's hard to quantify for me. 
   
   There is some extreme corner case when imagine there is a heavy back pressure, but all CB are processed at the same time. That means announcements in this version wouldn't cause timeout (it would in my older proposal), and this version will need to wait for some CB to be processed (which can take long time).
   
   Active timeout would alleviate this problem though.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10505",
       "triggerID" : "e470bcdae1694f36a466767a457a54006432e5a8",
       "triggerType" : "PUSH"
     }, {
       "hash" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10522",
       "triggerID" : "64f5b48580f748cc15bc7ee65db45dd937b4821a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10903",
       "triggerID" : "cbce4fc8b854e23dc7128b161336dc09e2d81e03",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904",
       "triggerID" : "c98b6606d03656b144f18c76a8af8b14c0b65b17",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "8e85c514fcd09a767d76498da227d741e1b2d7e9",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c98b6606d03656b144f18c76a8af8b14c0b65b17 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10904) 
   * 8e85c514fcd09a767d76498da227d741e1b2d7e9 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r540444475



##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -146,28 +146,7 @@ private void switchToUnaligned(
 
 	@Override
 	public Optional<CheckpointBarrier> postProcessLastBarrier(InputChannelInfo channelInfo, CheckpointBarrier barrier) throws IOException, CheckpointException {
-		Optional<CheckpointBarrier> maybeTimeOut = asTimedOut(barrier);
-		if (maybeTimeOut.isPresent() && activeController == alignedController) {
-			switchToUnaligned(channelInfo, maybeTimeOut.get());
-			checkState(activeController == unalignedController);
-			checkState(!activeController.postProcessLastBarrier(channelInfo, maybeTimeOut.orElse(barrier)).isPresent());
-			return maybeTimeOut;
-		}
-
-		barrier = maybeTimeOut.orElse(barrier);
-		if (barrier.getCheckpointOptions().isUnalignedCheckpoint()) {
-			checkState(activeController == unalignedController);
-			checkState(!activeController.postProcessLastBarrier(channelInfo, maybeTimeOut.orElse(barrier)).isPresent());
-			return Optional.empty();
-		}
-		else {
-			checkState(activeController == alignedController);
-			Optional<CheckpointBarrier> triggerResult = activeController.postProcessLastBarrier(
-				channelInfo,
-				barrier);
-			checkState(triggerResult.isPresent());
-			return triggerResult;
-		}

Review comment:
       Yes, with `switchToUnaligned` in `barrierReceived` it seems unnecessary.
   With this code, `UnalignedCheckpointITCase` fails: some tests on `checkState` (line 164 above), some hanging up.
   
   Besides, why timeout alignment if it's the last barrier? This essentially means that alignment is done.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-738812585


   @SteNicholas yes, but I think the PR won't be merged soon. I expect a lot of feedback from @pnowojski
   
   The latest AZP failure is caused by FLINK-19863


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * bcd846138434e9990c388d970ff4d313c5099978 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r544868039



##########
File path: flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/AlternatingControllerTest.java
##########
@@ -68,6 +68,22 @@
  */
 public class AlternatingControllerTest {
 
+	/**
+	 * Upon subsuming (or canceling) a checkpoint, channels should be notified regardless of whether UC controller is
+	 * currently being used or not. Otherwise, channels may capture in-flight buffers from an older checkpoint.

Review comment:
       Sorry, my bad, I didn't update the comment after updating the test. 
   It checks whether the buffer (on the other channel) was captured or not. I'll update the comment.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] pnowojski commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
pnowojski commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r544377114



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java
##########
@@ -451,11 +451,20 @@ public void onBuffer(Buffer buffer, int sequenceNumber, int backlog) throws IOEx
 				}
 				else {
 					receivedBuffers.add(sequenceBuffer);
-					channelStatePersister.maybePersist(buffer);
 					if (dataType.requiresAnnouncement()) {
 						firstPriorityEvent = addPriorityBuffer(announce(sequenceBuffer));
 					}
 				}
+				channelStatePersister
+					.checkForBarrier(sequenceBuffer.buffer)
+					.filter(id -> id > lastBarrierId)
+					.ifPresent(id -> {
+						// checkpoint was not yet started by task thread,
+						// so remember the numbers of buffers to spill for the time when it will be started
+						lastBarrierId = id;
+						lastBarrierSequenceNumber = sequenceBuffer.sequenceNumber;
+					});
+				channelStatePersister.maybePersist(buffer);

Review comment:
       And what about test coverage for  those changes?
   
   Side question, shouldn't those two fixes be separate commits?

##########
File path: flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/AlternatingControllerTest.java
##########
@@ -68,6 +68,22 @@
  */
 public class AlternatingControllerTest {
 
+	/**
+	 * Upon subsuming (or canceling) a checkpoint, channels should be notified regardless of whether UC controller is
+	 * currently being used or not. Otherwise, channels may capture in-flight buffers from an older checkpoint.

Review comment:
       > Otherwise, channels may capture in-flight buffers from an older checkpoint
   
   Is this test actually checking for that? I do not see any buffer that would belong to an older checkpoint?
   
   (I think I still do not understand this fix)

##########
File path: flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/AlternatingControllerTest.java
##########
@@ -84,6 +84,24 @@ public void testChannelResetOnNewBarrier() throws Exception {
 		assertFalse(stateWriter.getAddedInput().isEmpty());
 	}
 
+	/**
+	 * If a checkpoint announcement was processed and then UC-barrier arrives (from the upstream)
+	 * then it should be processed by the UC controller.
+	 */
+	@Test
+	public void testSwitchToUnalignedByUpstream() throws Exception {
+		SingleInputGate inputGate = new SingleInputGateBuilder().setNumberOfChannels(2).build();
+		inputGate.setInputChannels(new TestInputChannel(inputGate, 0), new TestInputChannel(inputGate, 1));
+		ValidatingCheckpointHandler target = new ValidatingCheckpointHandler();
+		SingleCheckpointBarrierHandler barrierHandler = barrierHandler(inputGate, target);
+		CheckpointedInputGate gate = buildGate(target, 2);
+
+		CheckpointBarrier aligned = new CheckpointBarrier(1, System.currentTimeMillis(), alignedWithTimeout(getDefault(), Integer.MAX_VALUE));
+
+		send(toBuffer(new EventAnnouncement(aligned, 0), true), 0, gate); // process announcement but not the barrier
+		send(toBuffer(aligned.asUnaligned(), true), 1, gate); // pretend it came from upstream before the first (AC) barrier was picked up
+	}

Review comment:
       Aren't we missing some assertion?

##########
File path: flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/AlternatingControllerTest.java
##########
@@ -84,6 +84,24 @@ public void testChannelResetOnNewBarrier() throws Exception {
 		assertFalse(stateWriter.getAddedInput().isEmpty());
 	}
 
+	/**
+	 * If a checkpoint announcement was processed and then UC-barrier arrives (from the upstream)
+	 * then it should be processed by the UC controller.

Review comment:
       ```
   	 * If a checkpoint announcement was processed and then UC-barrier arrives (from the upstream)
   	 * then it should be processed by the UC controller.
   ```
   ->
   ```
   	 * If a checkpoint announcement was processed from one channel and then UC-barrier arrives 
   	 * on another channel, this UC barrier should be processed by the UC controller.
   ```
   ?

##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -114,6 +114,7 @@ public void barrierAnnouncement(
 			lastSeenBarrier = barrier.getId();
 			firstBarrierArrivalTime = getArrivalTime(barrier);
 		}
+		activeController = chooseController(barrier);

Review comment:
       I still don't get this fix.
   > But there is a preProcessFirstBarrier before the switch in barrierReceived.
   
   Yes, but my intention was that in that case, `preProcessFirstBarrier` would be called on the AlignedController. Next on the first barrier, we would switch to unaligned controller, which is doing this:
   ```
   		// alignedController might has already processed some barriers, so "migrate"/forward those calls to unalignedController.
   		unalignedController.preProcessFirstBarrier(channelInfo, barrier);
   		for (InputChannelInfo blockedChannel : blockedChannels) {
   			unalignedController.barrierReceived(blockedChannel, barrier);
   		}
   ```
   so `preProcessFirstBarrier` would be eventually called on the unaligned controller.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r540428875



##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -114,6 +114,7 @@ public void barrierAnnouncement(
 			lastSeenBarrier = barrier.getId();
 			firstBarrierArrivalTime = getArrivalTime(barrier);
 		}
+		activeController = chooseController(barrier);

Review comment:
       Consider a checkpoint with two barriers from two channels: UC and AC:
   1. Process AC announcement. Set `SingleCheckpointBarrierHandler.currentCheckpointId`. Don't timeout. 
   2. Process UC barrier (no announcements). Because `currentCheckpointId` was set `checkSubsumedCheckpoint` does nothing, i.e. `preProcessFirstBarrierOrAnnouncement` not called and controller so `activeController` == AC
   3. Further process (UC) barrier - now AC controller is processing UC barrier
   
   > (as in other places: a unit test would be helpful)
   
   I agree, will add it.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-742754413


   Thanks for reviewing @pnowojski.
   Yes, the tests are stable (I'll check it again though since I rebased the PR recently).
   I agree about unit tests, will add them and address other issues.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] pnowojski commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
pnowojski commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r540112878



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/ChannelStatePersister.java
##########
@@ -88,16 +88,16 @@ protected void maybePersist(Buffer buffer) {
 	}

Review comment:
       Commit message is a bit misleading/out dated (`pendingBarrier` -> `lastSeenBarrier`). (also in a some of the following commits)




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] pnowojski commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
pnowojski commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r540103645



##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlignedController.java
##########
@@ -23,6 +23,7 @@
 import org.apache.flink.runtime.checkpoint.channel.InputChannelInfo;
 import org.apache.flink.runtime.io.network.api.CheckpointBarrier;
 import org.apache.flink.runtime.io.network.partition.consumer.CheckpointableInput;
+import org.apache.flink.util.Preconditions;

Review comment:
       optional nit: I would prefer to static import `checkState` for shorter code (we are using it frequently enough, that I think `Preconditions.checkState` is too verbose).

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/ChannelStatePersister.java
##########
@@ -88,16 +88,16 @@ protected void maybePersist(Buffer buffer) {
 	}

Review comment:
       Commit message is a bit misleading/out dated (`pendingBarrier` -> `lastSeenBarrier`).

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/LocalInputChannel.java
##########
@@ -229,11 +229,8 @@ public void run() {
 
 		numBytesIn.inc(buffer.getSize());
 		numBuffersIn.inc();
-		if (buffer.getDataType().hasPriority()) {
-			channelStatePersister.checkForBarrier(buffer);
-		} else {
-			channelStatePersister.maybePersist(buffer);
-		}
+		channelStatePersister.checkForBarrier(buffer);
+		channelStatePersister.maybePersist(buffer);

Review comment:
       Can you add a unit test that would show/explain the problem?

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java
##########
@@ -569,14 +569,23 @@ public void convertToPriorityEvent(int sequenceNumber) throws IOException {
 				"Attempted to convertToPriorityEvent an event [%s] that has already been prioritized [%s]",
 				toPrioritize,
 				numPriorityElementsBeforeRemoval);
+			// set the priority flag (checked on poll)
+			// don't convert the barrier itself (barrier controller might not have been switched yet)
+			AbstractEvent e = EventSerializer.fromBuffer(toPrioritize.buffer, this.getClass().getClassLoader());
+			toPrioritize.buffer.setReaderIndex(0);
+			toPrioritize = new SequenceBuffer(EventSerializer.toBuffer(e, true), toPrioritize.sequenceNumber);
 			firstPriorityEvent = addPriorityBuffer(toPrioritize); 	// note that only position of the element is changed
 																	// converting the event itself would require switching the controller sooner
 		}
 		if (firstPriorityEvent) {
-			notifyPriorityEvent(sequenceNumber);
+			notifyPriorityEventForce(); // use force here because the barrier SQN might be seen by gate during the announcement

Review comment:
       nit: I don't understand this comment, can you rephrase/elaborate a bit?

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/CheckpointBarrier.java
##########
@@ -119,6 +119,6 @@ public boolean isCheckpoint() {
 	}
 
 	public CheckpointBarrier asUnaligned() {
-		return checkpointOptions.isUnalignedCheckpoint() ? this : new CheckpointBarrier(getId(), getTimestamp(), getCheckpointOptions().asTimedOut());
+		return checkpointOptions.isUnalignedCheckpoint() ? this : new CheckpointBarrier(getId(), getTimestamp(), getCheckpointOptions().toUnaligned());

Review comment:
       part of a previous fixup?

##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlignedController.java
##########
@@ -120,6 +122,12 @@ public void obsoleteBarrierReceived(
 		resumeConsumption(channelInfo);
 	}
 
+	protected void resetPendingCheckpoint(long cancelledId) {
+		for (final CheckpointableInput input : inputs) {
+			input.checkpointStopped(cancelledId);
+		}
+	}
+

Review comment:
       ditto unit test

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java
##########
@@ -451,11 +451,17 @@ public void onBuffer(Buffer buffer, int sequenceNumber, int backlog) throws IOEx
 				}
 				else {
 					receivedBuffers.add(sequenceBuffer);
-					channelStatePersister.maybePersist(buffer);
 					if (dataType.requiresAnnouncement()) {
 						firstPriorityEvent = addPriorityBuffer(announce(sequenceBuffer));
 					}
 				}
+				channelStatePersister.checkForBarrier(sequenceBuffer.buffer).ifPresent(id -> {
+					// checkpoint was not yet started by task thread,
+					// so remember the numbers of buffers to spill for the time when it will be started
+					lastBarrierSequenceNumber = sequenceBuffer.sequenceNumber;
+					lastBarrierId = id;
+				});
+				channelStatePersister.maybePersist(buffer);

Review comment:
       ditto about a unit test? (What is the scenario that is working differently and how is it is supposed to be working)

##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -193,6 +202,11 @@ private CheckpointBarrierBehaviourController chooseController(CheckpointBarrier
 
 	private boolean canTimeout(CheckpointBarrier barrier) {
 		return barrier.getCheckpointOptions().isTimeoutable() &&
-			barrier.getCheckpointOptions().getAlignmentTimeout() < (System.currentTimeMillis() - barrier.getTimestamp());
+			barrier.getId() <= lastSeenBarrier &&
+			barrier.getCheckpointOptions().getAlignmentTimeout() * 1_000_000 < (System.nanoTime() - firstBarrierArrivalTime);
+	}
+
+	private long getArrivalTime(CheckpointBarrier announcedBarrier) {
+		return announcedBarrier.getCheckpointOptions().isTimeoutable() ? System.nanoTime() : Long.MAX_VALUE;

Review comment:
       I'm not entirely convinced if this a better approach. 
   
   For me, using global checkpoint time (in other words recently added checkpoinStartDelay metric) seemed easier to understand for the user. If aligned checkpoint barrier is taking too much time to reach given tasks - we are timeouting it to unaligned checkpoint that overtakes in-flight data. This seemed easier to comprehend and easier to explain  compared to time outing alignment on some subtask?
   
   Secondly your proposed change will not work with single input tasks without active timeouts?

##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -114,6 +114,7 @@ public void barrierAnnouncement(
 			lastSeenBarrier = barrier.getId();
 			firstBarrierArrivalTime = getArrivalTime(barrier);
 		}
+		activeController = chooseController(barrier);

Review comment:
       ? 
   
   Why is it not enough to do this in `preProcessFirstBarrierOrAnnouncement`?
   
   (as in other places: a unit test would be helpful)

##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -146,28 +146,7 @@ private void switchToUnaligned(
 
 	@Override
 	public Optional<CheckpointBarrier> postProcessLastBarrier(InputChannelInfo channelInfo, CheckpointBarrier barrier) throws IOException, CheckpointException {
-		Optional<CheckpointBarrier> maybeTimeOut = asTimedOut(barrier);
-		if (maybeTimeOut.isPresent() && activeController == alignedController) {
-			switchToUnaligned(channelInfo, maybeTimeOut.get());
-			checkState(activeController == unalignedController);
-			checkState(!activeController.postProcessLastBarrier(channelInfo, maybeTimeOut.orElse(barrier)).isPresent());
-			return maybeTimeOut;
-		}
-
-		barrier = maybeTimeOut.orElse(barrier);
-		if (barrier.getCheckpointOptions().isUnalignedCheckpoint()) {
-			checkState(activeController == unalignedController);
-			checkState(!activeController.postProcessLastBarrier(channelInfo, maybeTimeOut.orElse(barrier)).isPresent());
-			return Optional.empty();
-		}
-		else {
-			checkState(activeController == alignedController);
-			Optional<CheckpointBarrier> triggerResult = activeController.postProcessLastBarrier(
-				channelInfo,
-				barrier);
-			checkState(triggerResult.isPresent());
-			return triggerResult;
-		}

Review comment:
       Why have you removed this code? What was the problem?
   
   Was it subsumed by `switchToUnaligned ` call happening in the last `barrierReceived` call?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 6435a7da42247e8a59fc8bd3159470d761bd7127 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 6435a7da42247e8a59fc8bd3159470d761bd7127 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594) 
   * 107985b487f186beaeddd7187a383fd268b997db Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479",
       "triggerID" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b3aa80f54805a5ca4b583c531c35aa64bf3d8d55",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "737884317",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "107985b487f186beaeddd7187a383fd268b997db",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483",
       "triggerID" : "107985b487f186beaeddd7187a383fd268b997db",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 6435a7da42247e8a59fc8bd3159470d761bd7127 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594) 
   * b3aa80f54805a5ca4b583c531c35aa64bf3d8d55 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10479) Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10482) 
   * 107985b487f186beaeddd7187a383fd268b997db Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10483) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     }, {
       "hash" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594",
       "triggerID" : "6435a7da42247e8a59fc8bd3159470d761bd7127",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * a0225769113bc5163d40f7dfa600f7636629a530 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589) 
   * 6435a7da42247e8a59fc8bd3159470d761bd7127 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9594) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 86f96719e726d0225aa7201bb43f7c315aa74eea Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan closed pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan closed pull request #14057:
URL: https://github.com/apache/flink/pull/14057


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 94b400f3a36ba2d65950b196a9d2650effb64cdc Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579) 
   * a0225769113bc5163d40f7dfa600f7636629a530 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9589) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] SteNicholas commented on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
SteNicholas commented on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-738740542


   @rkhachatryan Did you complete working for FLINK-19681? I'm waiting for you for the completion of this pull request.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r544876522



##########
File path: flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/AlternatingControllerTest.java
##########
@@ -84,6 +84,24 @@ public void testChannelResetOnNewBarrier() throws Exception {
 		assertFalse(stateWriter.getAddedInput().isEmpty());
 	}
 
+	/**
+	 * If a checkpoint announcement was processed and then UC-barrier arrives (from the upstream)
+	 * then it should be processed by the UC controller.
+	 */
+	@Test
+	public void testSwitchToUnalignedByUpstream() throws Exception {
+		SingleInputGate inputGate = new SingleInputGateBuilder().setNumberOfChannels(2).build();
+		inputGate.setInputChannels(new TestInputChannel(inputGate, 0), new TestInputChannel(inputGate, 1));
+		ValidatingCheckpointHandler target = new ValidatingCheckpointHandler();
+		SingleCheckpointBarrierHandler barrierHandler = barrierHandler(inputGate, target);
+		CheckpointedInputGate gate = buildGate(target, 2);
+
+		CheckpointBarrier aligned = new CheckpointBarrier(1, System.currentTimeMillis(), alignedWithTimeout(getDefault(), Integer.MAX_VALUE));
+
+		send(toBuffer(new EventAnnouncement(aligned, 0), true), 0, gate); // process announcement but not the barrier
+		send(toBuffer(aligned.asUnaligned(), true), 1, gate); // pretend it came from upstream before the first (AC) barrier was picked up
+	}

Review comment:
       The expectation is that it just won't fail (without the fix, it will).




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on a change in pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on a change in pull request #14057:
URL: https://github.com/apache/flink/pull/14057#discussion_r540438232



##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/AlternatingController.java
##########
@@ -193,6 +202,11 @@ private CheckpointBarrierBehaviourController chooseController(CheckpointBarrier
 
 	private boolean canTimeout(CheckpointBarrier barrier) {
 		return barrier.getCheckpointOptions().isTimeoutable() &&
-			barrier.getCheckpointOptions().getAlignmentTimeout() < (System.currentTimeMillis() - barrier.getTimestamp());
+			barrier.getId() <= lastSeenBarrier &&
+			barrier.getCheckpointOptions().getAlignmentTimeout() * 1_000_000 < (System.nanoTime() - firstBarrierArrivalTime);
+	}
+
+	private long getArrivalTime(CheckpointBarrier announcedBarrier) {
+		return announcedBarrier.getCheckpointOptions().isTimeoutable() ? System.nanoTime() : Long.MAX_VALUE;

Review comment:
       >  easier to understand
   
   I agree that it might be true for some users, but not for all. During the [previous discussion](https://github.com/apache/flink/pull/13827#discussion_r527794600), and also the one before, the consensus was that it's **not** easier to understand. However, we can discuss it again. 
   (also there are some more technical advantages of "local" timeouts)
   
   > Secondly your proposed change will not work with single input tasks without active timeouts?
   
   Why, could you explain?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] pnowojski commented on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
pnowojski commented on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-748864186


   @flinkbot run azure


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     }, {
       "hash" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579",
       "triggerID" : "94b400f3a36ba2d65950b196a9d2650effb64cdc",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "a0225769113bc5163d40f7dfa600f7636629a530",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 94b400f3a36ba2d65950b196a9d2650effb64cdc Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9579) 
   * a0225769113bc5163d40f7dfa600f7636629a530 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] rkhachatryan commented on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
rkhachatryan commented on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-745830277


   I've updated the PR and addressed your feedback @pnowojski, please take a look.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #14057: [FLINK-19681][checkpointing] Timeout aligned checkpoints

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14057:
URL: https://github.com/apache/flink/pull/14057#issuecomment-726354432


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542",
       "triggerID" : "86f96719e726d0225aa7201bb43f7c315aa74eea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bcd846138434e9990c388d970ff4d313c5099978",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560",
       "triggerID" : "bcd846138434e9990c388d970ff4d313c5099978",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 86f96719e726d0225aa7201bb43f7c315aa74eea Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9542) 
   * bcd846138434e9990c388d970ff4d313c5099978 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9560) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org