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 2021/02/04 01:20:06 UTC
[GitHub] [flink] gaoyunhaii opened a new pull request #14857: Final cp 7 21087
gaoyunhaii opened a new pull request #14857:
URL: https://github.com/apache/flink/pull/14857
<!--
*Thank you very much for contributing to Apache Flink - we are happy that you want to help us improve Flink. To help the community review your contribution in the best possible way, please go through the checklist below, which will get the contribution into a shape in which it can be best reviewed.*
*Please understand that we do not do this to make contributions to Flink a hassle. In order to uphold a high standard of quality for code contributions, while at the same time managing a large number of contributions, we need contributors to prepare the contributions well, and give reviewers enough contextual information for the review. Please also understand that contributions that do not follow this guide will take longer to review and thus typically be picked up with lower priority by the community.*
## Contribution Checklist
- Make sure that the pull request corresponds to a [JIRA issue](https://issues.apache.org/jira/projects/FLINK/issues). Exceptions are made for typos in JavaDoc or documentation files, which need no JIRA issue.
- Name the pull request in the form "[FLINK-XXXX] [component] Title of the pull request", where *FLINK-XXXX* should be replaced by the actual issue number. Skip *component* if you are unsure about which is the best component.
Typo fixes that have no associated JIRA issue should be named following this pattern: `[hotfix] [docs] Fix typo in event time introduction` or `[hotfix] [javadocs] Expand JavaDoc for PuncuatedWatermarkGenerator`.
- Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
- Make sure that the change passes the automated tests, i.e., `mvn clean verify` passes. You can set up Azure Pipelines CI to do that following [this guide](https://cwiki.apache.org/confluence/display/FLINK/Azure+Pipelines#AzurePipelines-Tutorial:SettingupAzurePipelinesforaforkoftheFlinkrepository).
- Each pull request should address only one issue, not mix up code from multiple issues.
- Each commit in the pull request has a meaningful commit message (including the JIRA id)
- Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below.
**(The sections below can be removed for hotfixes of typos)**
-->
## What is the purpose of the change
*(For example: This pull request makes task deployment go through the blob server, rather than through RPC. That way we avoid re-transferring them on each deployment (during recovery).)*
## Brief change log
*(for example:)*
- *The TaskInfo is stored in the blob store on job creation time as a persistent artifact*
- *Deployments RPC transmits only the blob storage reference*
- *TaskManagers retrieve the TaskInfo from the blob cache*
## Verifying this change
*(Please pick either of the following options)*
This change is a trivial rework / code cleanup without any test coverage.
*(or)*
This change is already covered by existing tests, such as *(please describe tests)*.
*(or)*
This change added tests and can be verified as follows:
*(example:)*
- *Added integration tests for end-to-end deployment with large payloads (100MB)*
- *Extended integration test for recovery after master (JobManager) failure*
- *Added test that validates that TaskInfo is transferred only once across recoveries*
- *Manually verified the change by running a 4 node cluser with 2 JobManagers and 4 TaskManagers, a stateful streaming program, and killing one JobManager and two TaskManagers during the execution, verifying that recovery happens correctly.*
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (yes / no)
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / no)
- The serializers: (yes / no / don't know)
- The runtime per-record code paths (performance sensitive): (yes / no / don't know)
- Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (yes / no / don't know)
- The S3 file system connector: (yes / no / don't know)
## Documentation
- Does this pull request introduce a new feature? (yes / no)
- If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
----------------------------------------------------------------
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 #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
}, {
"hash" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010",
"triggerID" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"triggerType" : "PUSH"
}, {
"hash" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"triggerType" : "PUSH"
}, {
"hash" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20105",
"triggerID" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"triggerType" : "PUSH"
}, {
"hash" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109",
"triggerID" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 9001aac64f898e27a846aa19bd4b6aacd6ad745c Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010)
* eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815 UNKNOWN
* 9580413c85c490b92592f93fdb8d3c9ca2da8495 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20105)
* e19e26451d32719c80887f6ce02d1cc7d8ec5512 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109)
<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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
--
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 #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 56e89104538519e2a74f3276149da0b1372bd024 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895)
<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 #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 82c73a2902f54fa1a24ca14901fe2534b05c4083 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630)
<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] gaoyunhaii commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
gaoyunhaii commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r664740019
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/AsyncCheckpointRunnable.java
##########
@@ -110,8 +109,6 @@ public void run() {
FileSystemSafetyNet.initializeSafetyNetForThread();
try {
- registerConsumer.accept(this);
Review comment:
I think it might be necessary since otherwise there might be the case
1. We trigger a checkpoint and schedule its asynchronous part.
2. We call `waitForPendingCheckpoints()`. However, the asynchronous part is not executed yet.
3. After the call is done, the asynchronous part is executed and register the runnable.
Then this runnable would be missed~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
}, {
"hash" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010",
"triggerID" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"triggerType" : "PUSH"
}, {
"hash" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"triggerType" : "PUSH"
}, {
"hash" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20105",
"triggerID" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"triggerType" : "PUSH"
}, {
"hash" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109",
"triggerID" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"triggerType" : "PUSH"
}, {
"hash" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20119",
"triggerID" : "875855918",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815 UNKNOWN
* e19e26451d32719c80887f6ce02d1cc7d8ec5512 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109) Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20119)
<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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] dawidwys closed pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
dawidwys closed pull request #14857:
URL: https://github.com/apache/flink/pull/14857
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
}, {
"hash" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010",
"triggerID" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 82c73a2902f54fa1a24ca14901fe2534b05c4083 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630)
* 9001aac64f898e27a846aa19bd4b6aacd6ad745c Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010)
<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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
}, {
"hash" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010",
"triggerID" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"triggerType" : "PUSH"
}, {
"hash" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"triggerType" : "PUSH"
}, {
"hash" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20105",
"triggerID" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"triggerType" : "PUSH"
}, {
"hash" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109",
"triggerID" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"triggerType" : "PUSH"
}, {
"hash" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20119",
"triggerID" : "875855918",
"triggerType" : "MANUAL"
}, {
"hash" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109",
"triggerID" : "875855918",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815 UNKNOWN
* e19e26451d32719c80887f6ce02d1cc7d8ec5512 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20119) Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109)
<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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] dawidwys commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
dawidwys commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665390611
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java
##########
@@ -406,6 +406,31 @@ public void initInputsCheckpoint(long id, CheckpointOptions checkpointOptions)
}
}
+ public void waitForPendingCheckpoints() throws Exception {
+ if (!enableCheckpointAfterTasksFinished) {
+ return;
+ }
+
+ List<AsyncCheckpointRunnable> asyncCheckpointRunnables;
+ synchronized (lock) {
+ asyncCheckpointRunnables = new ArrayList<>(checkpoints.values());
+ }
+
+ // Waits for each checkpoint independently.
+ asyncCheckpointRunnables.forEach(
+ ar -> {
+ try {
+ ar.getFinishedFuture().get();
+ } catch (Exception e) {
+ LOG.error(
Review comment:
Now I am a bit afraid we log the exception a few times too many. It is logged on an info level in the `CheckpointAsyncRunnable` then again in the `StreamTask#handleAsyncException` (somewhere deeper in the stack).
WDYT about dropping the log? Or how about we log it on the `debug` level`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] dawidwys commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
dawidwys commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665316276
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java
##########
@@ -527,20 +552,22 @@ private void finishAndReportAsync(
CheckpointMetaData metadata,
CheckpointMetricsBuilder metrics,
Supplier<Boolean> isRunning) {
- // we are transferring ownership over snapshotInProgressList for cleanup to the thread,
- // active on submit
- asyncOperationsThreadPool.execute(
+ AsyncCheckpointRunnable asyncCheckpointRunnable =
new AsyncCheckpointRunnable(
snapshotFutures,
metadata,
metrics,
System.nanoTime(),
taskName,
- registerConsumer(),
unregisterConsumer(),
env,
asyncExceptionHandler,
- isRunning));
+ isRunning);
+ registerConsumer().accept(asyncCheckpointRunnable);
Review comment:
BTW, sorry I missed one comment in the previous review (not sure how). Let's inline the regsiterConsumer() and remove the method. It is unnecessary to go through the Consumer here.
I believe we can replace it with:
```
registerAsyncCheckpointRunnable(
asyncCheckpointRunnable.getCheckpointId(), asyncCheckpointRunnable);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
}, {
"hash" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 82c73a2902f54fa1a24ca14901fe2534b05c4083 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630)
* 9001aac64f898e27a846aa19bd4b6aacd6ad745c 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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] gaoyunhaii commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
gaoyunhaii commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665305990
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java
##########
@@ -406,6 +406,31 @@ public void initInputsCheckpoint(long id, CheckpointOptions checkpointOptions)
}
}
+ public void waitForPendingCheckpoints() throws Exception {
+ if (!enableCheckpointAfterTasksFinished) {
+ return;
+ }
+
+ List<AsyncCheckpointRunnable> asyncCheckpointRunnables;
+ synchronized (lock) {
+ asyncCheckpointRunnables = new ArrayList<>(checkpoints.values());
+ }
+
+ // Waits for each checkpoint independently.
+ asyncCheckpointRunnables.forEach(
+ ar -> {
+ try {
+ ar.getFinishedFuture().get();
+ } catch (Exception e) {
+ LOG.error(
Review comment:
I think here perhaps here we do not want to cause failover if one async runnable completed exceptionally ? For normal execution the async runnable fail seems also only fail the checkpoint but do not cause failover~ And we may also do not want to stop waiting if one of the async runnable fails~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] dawidwys commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
dawidwys commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665378130
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java
##########
@@ -563,24 +563,19 @@ private void finishAndReportAsync(
env,
asyncExceptionHandler,
isRunning);
- registerConsumer().accept(asyncCheckpointRunnable);
+
+ try {
Review comment:
The `try-catch` is unnecessary here. You can safely add the IOException to the method signature. I think the only reason for wrapping it before was to match the `Consumer` interface.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] gaoyunhaii commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
gaoyunhaii commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665315289
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java
##########
@@ -406,6 +406,31 @@ public void initInputsCheckpoint(long id, CheckpointOptions checkpointOptions)
}
}
+ public void waitForPendingCheckpoints() throws Exception {
+ if (!enableCheckpointAfterTasksFinished) {
+ return;
+ }
+
+ List<AsyncCheckpointRunnable> asyncCheckpointRunnables;
+ synchronized (lock) {
+ asyncCheckpointRunnables = new ArrayList<>(checkpoints.values());
+ }
+
+ // Waits for each checkpoint independently.
+ asyncCheckpointRunnables.forEach(
+ ar -> {
+ try {
+ ar.getFinishedFuture().get();
+ } catch (Exception e) {
+ LOG.error(
Review comment:
No, that should be indeed a mistake, I'll modify this part~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot commented on pull request #14857: Final cp 7 21087
Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772953133
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 56e89104538519e2a74f3276149da0b1372bd024 (Thu Feb 04 01:22:41 UTC 2021)
**Warnings:**
* No documentation files were touched! Remember to keep the Flink docs up to date!
* **Invalid pull request title: No valid Jira ID provided**
<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] gaoyunhaii commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
gaoyunhaii commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665305990
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java
##########
@@ -406,6 +406,31 @@ public void initInputsCheckpoint(long id, CheckpointOptions checkpointOptions)
}
}
+ public void waitForPendingCheckpoints() throws Exception {
+ if (!enableCheckpointAfterTasksFinished) {
+ return;
+ }
+
+ List<AsyncCheckpointRunnable> asyncCheckpointRunnables;
+ synchronized (lock) {
+ asyncCheckpointRunnables = new ArrayList<>(checkpoints.values());
+ }
+
+ // Waits for each checkpoint independently.
+ asyncCheckpointRunnables.forEach(
+ ar -> {
+ try {
+ ar.getFinishedFuture().get();
+ } catch (Exception e) {
+ LOG.error(
Review comment:
I think here perhaps here we do not want to cause failover if one async runnable completed exceptionally ? For normal execution the async runnable fail seems also only fail the checkpoint but do not cause failover~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot commented on pull request #14857: Final cp 7 21087
Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 56e89104538519e2a74f3276149da0b1372bd024 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 #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 56e89104538519e2a74f3276149da0b1372bd024 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895)
* 82c73a2902f54fa1a24ca14901fe2534b05c4083 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] dawidwys commented on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
dawidwys commented on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-875855918
@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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
}, {
"hash" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010",
"triggerID" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"triggerType" : "PUSH"
}, {
"hash" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"triggerType" : "PUSH"
}, {
"hash" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20105",
"triggerID" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"triggerType" : "PUSH"
}, {
"hash" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109",
"triggerID" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"triggerType" : "PUSH"
}, {
"hash" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20119",
"triggerID" : "875855918",
"triggerType" : "MANUAL"
}, {
"hash" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109",
"triggerID" : "875855918",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815 UNKNOWN
* e19e26451d32719c80887f6ce02d1cc7d8ec5512 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20119) Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109)
<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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] gaoyunhaii commented on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
gaoyunhaii commented on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-874751663
Hi @dawidwys , could you also have a look at this PR when convenient~?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] gaoyunhaii commented on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
gaoyunhaii commented on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-875607681
Very thanks @dawidwys for the review! I have updated the PR according to the comments~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
}, {
"hash" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010",
"triggerID" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"triggerType" : "PUSH"
}, {
"hash" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"triggerType" : "PUSH"
}, {
"hash" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20105",
"triggerID" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"triggerType" : "PUSH"
}, {
"hash" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109",
"triggerID" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815 UNKNOWN
* e19e26451d32719c80887f6ce02d1cc7d8ec5512 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109)
<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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] dawidwys commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
dawidwys commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665315565
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/AsyncCheckpointRunnable.java
##########
@@ -110,8 +109,6 @@ public void run() {
FileSystemSafetyNet.initializeSafetyNetForThread();
try {
- registerConsumer.accept(this);
Review comment:
BTW, sorry I missed one comment in the previous review (not sure how). Let's inline the regsiterConsumer() and remove the method. It is unnecessary to go through the `Consumer` here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] gaoyunhaii commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
gaoyunhaii commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665369625
##########
File path: flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskTest.java
##########
@@ -1864,6 +1866,61 @@ static void processMailTillCheckpointSucceeds(
testHarness.getTaskStateManager().getWaitForReportLatch().await();
}
+ @Test
+ public void testWaitingForPendingCheckpointsOnFinished() throws Exception {
Review comment:
Sorry for not check if the test is work in reverse cases... It seems indeed not easy to accurately test "wait", and I think the suggested implementation is very good. I have changed the test to this implementation~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] gaoyunhaii commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
gaoyunhaii commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665396857
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java
##########
@@ -563,24 +563,19 @@ private void finishAndReportAsync(
env,
asyncExceptionHandler,
isRunning);
- registerConsumer().accept(asyncCheckpointRunnable);
+
+ try {
Review comment:
Ah, sorry for ignore this, I have removed the exception wrapper~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
}, {
"hash" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010",
"triggerID" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"triggerType" : "PUSH"
}, {
"hash" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"triggerType" : "PUSH"
}, {
"hash" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 9001aac64f898e27a846aa19bd4b6aacd6ad745c Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010)
* eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815 UNKNOWN
* 9580413c85c490b92592f93fdb8d3c9ca2da8495 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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
}, {
"hash" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010",
"triggerID" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"triggerType" : "PUSH"
}, {
"hash" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 9001aac64f898e27a846aa19bd4b6aacd6ad745c Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010)
* eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815 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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
}, {
"hash" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010",
"triggerID" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"triggerType" : "PUSH"
}, {
"hash" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"triggerType" : "PUSH"
}, {
"hash" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20105",
"triggerID" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"triggerType" : "PUSH"
}, {
"hash" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109",
"triggerID" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815 UNKNOWN
* 9580413c85c490b92592f93fdb8d3c9ca2da8495 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20105)
* e19e26451d32719c80887f6ce02d1cc7d8ec5512 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20109)
<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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] dawidwys commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
dawidwys commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665235501
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java
##########
@@ -406,6 +406,31 @@ public void initInputsCheckpoint(long id, CheckpointOptions checkpointOptions)
}
}
+ public void waitForPendingCheckpoints() throws Exception {
+ if (!enableCheckpointAfterTasksFinished) {
+ return;
+ }
+
+ List<AsyncCheckpointRunnable> asyncCheckpointRunnables;
+ synchronized (lock) {
+ asyncCheckpointRunnables = new ArrayList<>(checkpoints.values());
+ }
+
+ // Waits for each checkpoint independently.
+ asyncCheckpointRunnables.forEach(
+ ar -> {
+ try {
+ ar.getFinishedFuture().get();
+ } catch (Exception e) {
+ LOG.error(
Review comment:
Does it make sense to log this exception? As far as I can tell we can end up here only with an `InterrputedException` on the `get`. Exceptions from the runnable are not forwarded to the `Future`, are they? We only ever complete the `Future` with `complete(null);`
I'd suggest to do:
```
final CompletableFuture<Void> combinedFuture;
synchronized (lock) {
combinedFuture =
FutureUtils.waitForAll(
checkpoints.values().stream()
.map(AsyncCheckpointRunnable::getFinishedFuture)
.collect(Collectors.toList()));
}
combinedFuture.get();
```
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/AsyncCheckpointRunnable.java
##########
@@ -110,8 +109,6 @@ public void run() {
FileSystemSafetyNet.initializeSafetyNetForThread();
try {
- registerConsumer.accept(this);
Review comment:
Makes total sense! I did not spend enough time analyzing it before.
##########
File path: flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskTest.java
##########
@@ -1864,6 +1866,61 @@ static void processMailTillCheckpointSucceeds(
testHarness.getTaskStateManager().getWaitForReportLatch().await();
}
+ @Test
+ public void testWaitingForPendingCheckpointsOnFinished() throws Exception {
Review comment:
Currently, the test passes both with and without waiting for the pending checkpoints.
Moreover I think there is a lot of timing assumptions that need to be met for the test to verify the intended behaviour. I could not think of a good way to fix all of them (would be best to remove the remaining `Thread#sleep()`), but what do you think about such test:
```
@Test
public void testWaitingForPendingCheckpointsOnFinished() throws Exception {
OneShotLatch asyncCheckpointExecuted = new OneShotLatch();
OneShotLatch canCheckpointBeAcknowledged = new OneShotLatch();
OneShotLatch invokeCompleted = new OneShotLatch();
TestCheckpointResponder responder =
new TestCheckpointResponder() {
@Override
public void acknowledgeCheckpoint(
JobID jobID,
ExecutionAttemptID executionAttemptID,
long checkpointId,
CheckpointMetrics checkpointMetrics,
TaskStateSnapshot subtaskState) {
try {
asyncCheckpointExecuted.trigger();
canCheckpointBeAcknowledged.await();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
};
CompletableFuture<Void> taskClosed =
CompletableFuture.runAsync(
() -> {
try (StreamTaskMailboxTestHarness<String> harness =
new StreamTaskMailboxTestHarnessBuilder<>(
OneInputStreamTask::new,
BasicTypeInfo.STRING_TYPE_INFO)
.addInput(BasicTypeInfo.STRING_TYPE_INFO, 3)
.modifyStreamConfig(
config -> config.setCheckpointingEnabled(true))
.setCheckpointResponder(responder)
.setupOperatorChain(new EmptyOperator())
.finishForSingletonOperatorChain(
StringSerializer.INSTANCE)
.build()) {
harness.streamTask
.getCheckpointCoordinator()
.setEnableCheckpointAfterTasksFinished(true);
harness.streamTask.triggerCheckpointOnBarrier(
new CheckpointMetaData(1, 101),
CheckpointOptions.forCheckpointWithDefaultLocation(),
new CheckpointMetricsBuilder()
.setBytesProcessedDuringAlignment(0L)
.setAlignmentDurationNanos(0L));
harness.waitForTaskCompletion();
invokeCompleted.trigger();
harness.finishProcessing();
} catch (Exception e) {
e.printStackTrace();
}
},
Executors.newSingleThreadExecutor());
asyncCheckpointExecuted.await();
invokeCompleted.await();
Thread.sleep(500); // give some potential time for the task to finish before the
// checkpoint is acknowledged
assertFalse(taskClosed.isDone());
canCheckpointBeAcknowledged.trigger();
taskClosed.get();
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] dawidwys commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
dawidwys commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r664656046
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/AsyncCheckpointRunnable.java
##########
@@ -110,8 +109,6 @@ public void run() {
FileSystemSafetyNet.initializeSafetyNetForThread();
try {
- registerConsumer.accept(this);
Review comment:
Is this change necessary? We are changing the time when the runnable is registered slightly. Before the change it was registered when run, now when the runnable is created.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] gaoyunhaii commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
gaoyunhaii commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665423348
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java
##########
@@ -406,6 +406,31 @@ public void initInputsCheckpoint(long id, CheckpointOptions checkpointOptions)
}
}
+ public void waitForPendingCheckpoints() throws Exception {
+ if (!enableCheckpointAfterTasksFinished) {
+ return;
+ }
+
+ List<AsyncCheckpointRunnable> asyncCheckpointRunnables;
+ synchronized (lock) {
+ asyncCheckpointRunnables = new ArrayList<>(checkpoints.values());
+ }
+
+ // Waits for each checkpoint independently.
+ asyncCheckpointRunnables.forEach(
+ ar -> {
+ try {
+ ar.getFinishedFuture().get();
+ } catch (Exception e) {
+ LOG.error(
Review comment:
The log is indeed repeat, Perhaps we first change it to the `debug` level ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
}, {
"hash" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010",
"triggerID" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"triggerType" : "PUSH"
}, {
"hash" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815",
"triggerType" : "PUSH"
}, {
"hash" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20105",
"triggerID" : "9580413c85c490b92592f93fdb8d3c9ca2da8495",
"triggerType" : "PUSH"
}, {
"hash" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e19e26451d32719c80887f6ce02d1cc7d8ec5512",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 9001aac64f898e27a846aa19bd4b6aacd6ad745c Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010)
* eac2bf7375798c8c8c48ca8ef1c738b7a4a8d815 UNKNOWN
* 9580413c85c490b92592f93fdb8d3c9ca2da8495 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20105)
* e19e26451d32719c80887f6ce02d1cc7d8ec5512 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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772953133
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 e19e26451d32719c80887f6ce02d1cc7d8ec5512 (Thu Sep 23 17:59:37 UTC 2021)
**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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] dawidwys commented on a change in pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
dawidwys commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665311913
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java
##########
@@ -406,6 +406,31 @@ public void initInputsCheckpoint(long id, CheckpointOptions checkpointOptions)
}
}
+ public void waitForPendingCheckpoints() throws Exception {
+ if (!enableCheckpointAfterTasksFinished) {
+ return;
+ }
+
+ List<AsyncCheckpointRunnable> asyncCheckpointRunnables;
+ synchronized (lock) {
+ asyncCheckpointRunnables = new ArrayList<>(checkpoints.values());
+ }
+
+ // Waits for each checkpoint independently.
+ asyncCheckpointRunnables.forEach(
+ ar -> {
+ try {
+ ar.getFinishedFuture().get();
+ } catch (Exception e) {
+ LOG.error(
Review comment:
I get the original intention, but to implement that we need changes in the `AsyncCheckpointRunnable`, don't we? Currently the `getFinishedFuture` never finishes exceptionally. We only ever call `finishedFuture.complete(null)` in the `AsyncCheckpointRunnable`. The only exception can appear from interrupting the thread that is calling the `waitForPendingCheckpoints`. Or am I wrong?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14857: [FLINK-21087][runtime][checkpoint] StreamTask waits for all the pending checkpoints to finish before finished
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14857:
URL: https://github.com/apache/flink/pull/14857#issuecomment-772961443
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "56e89104538519e2a74f3276149da0b1372bd024",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=12895",
"triggerID" : "56e89104538519e2a74f3276149da0b1372bd024",
"triggerType" : "PUSH"
}, {
"hash" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18630",
"triggerID" : "82c73a2902f54fa1a24ca14901fe2534b05c4083",
"triggerType" : "PUSH"
}, {
"hash" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010",
"triggerID" : "9001aac64f898e27a846aa19bd4b6aacd6ad745c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 9001aac64f898e27a846aa19bd4b6aacd6ad745c Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=20010)
<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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org