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 2022/07/20 19:15:17 UTC
[GitHub] [flink] zhuzhurk opened a new pull request, #20322: [FLINK-28585][runtime] Ensure all the concurrent executions of SpeculativeExecutionVertex to share the same input splits
zhuzhurk opened a new pull request, #20322:
URL: https://github.com/apache/flink/pull/20322
## What is the purpose of the change
This PR changes SpeculativeExecutionVertex to ensure all its concurrent executions to share the same input splits.
This allows speculative execution for sources tasks from jobs with InputFormatSource.
## Verifying this change
- *Added unit test in SpeculativeExecutionVertexTest*
## 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, 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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] wanglijie95 commented on a diff in pull request #20322: [FLINK-28585][runtime] Ensure all the concurrent executions of SpeculativeExecutionVertex to share the same input splits
Posted by GitBox <gi...@apache.org>.
wanglijie95 commented on code in PR #20322:
URL: https://github.com/apache/flink/pull/20322#discussion_r928369221
##########
flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/SpeculativeExecutionVertexTest.java:
##########
@@ -204,33 +212,46 @@ void testArchiveNonFailedExecutionWithArchiveFailedExecutionMethod() {
}
@Test
- void testGetExecutionState() throws Exception {
- final SpeculativeExecutionVertex ev = createSpeculativeExecutionVertex();
+ public void testGetNextInputSplit() throws Exception {
Review Comment:
public is not needed
##########
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/SpeculativeExecutionVertex.java:
##########
@@ -46,6 +48,8 @@ public class SpeculativeExecutionVertex extends ExecutionVertex {
private int originalAttemptNumber;
+ final Map<Integer, Integer> nextInputSplitIndexToConsumeByAttempts;
Review Comment:
This map should be clear when `resetForNewExecution`
##########
flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/SpeculativeExecutionVertexTest.java:
##########
@@ -204,33 +212,46 @@ void testArchiveNonFailedExecutionWithArchiveFailedExecutionMethod() {
}
@Test
- void testGetExecutionState() throws Exception {
- final SpeculativeExecutionVertex ev = createSpeculativeExecutionVertex();
+ public void testGetNextInputSplit() throws Exception {
Review Comment:
Why remove `testGetExecutionState` ?
--
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] zhuzhurk commented on a diff in pull request #20322: [FLINK-28585][runtime] Ensure all the concurrent executions of SpeculativeExecutionVertex to share the same input splits
Posted by GitBox <gi...@apache.org>.
zhuzhurk commented on code in PR #20322:
URL: https://github.com/apache/flink/pull/20322#discussion_r928536012
##########
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/SpeculativeExecutionVertex.java:
##########
@@ -46,6 +48,8 @@ public class SpeculativeExecutionVertex extends ExecutionVertex {
private int originalAttemptNumber;
+ final Map<Integer, Integer> nextInputSplitIndexToConsumeByAttempts;
Review Comment:
Good catch! We should do it to avoid leaks.
And it's also better to remove the attempt from `nextInputSplitIndexToConsumeByAttempts` in `archiveFailedExecution`.
I will make these two changes.
--
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] zhuzhurk closed pull request #20322: [FLINK-28585][runtime] Ensure all the concurrent executions of SpeculativeExecutionVertex to share the same input splits
Posted by GitBox <gi...@apache.org>.
zhuzhurk closed pull request #20322: [FLINK-28585][runtime] Ensure all the concurrent executions of SpeculativeExecutionVertex to share the same input splits
URL: https://github.com/apache/flink/pull/20322
--
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 #20322: [FLINK-28585][runtime] Ensure all the concurrent executions of SpeculativeExecutionVertex to share the same input splits
Posted by GitBox <gi...@apache.org>.
flinkbot commented on PR #20322:
URL: https://github.com/apache/flink/pull/20322#issuecomment-1190663447
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "250dc93eae23f279560baafb38e07065535e3798",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "250dc93eae23f279560baafb38e07065535e3798",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 250dc93eae23f279560baafb38e07065535e3798 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@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] zhuzhurk commented on a diff in pull request #20322: [FLINK-28585][runtime] Ensure all the concurrent executions of SpeculativeExecutionVertex to share the same input splits
Posted by GitBox <gi...@apache.org>.
zhuzhurk commented on code in PR #20322:
URL: https://github.com/apache/flink/pull/20322#discussion_r928532175
##########
flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/SpeculativeExecutionVertexTest.java:
##########
@@ -204,33 +212,46 @@ void testArchiveNonFailedExecutionWithArchiveFailedExecutionMethod() {
}
@Test
- void testGetExecutionState() throws Exception {
- final SpeculativeExecutionVertex ev = createSpeculativeExecutionVertex();
+ public void testGetNextInputSplit() throws Exception {
Review Comment:
> Why remove `testGetExecutionState` ?
My bad. This is not intended and is a result of bad conflict resolving.
--
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