forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-22276][runtime] Fixes the concurrency issue
This commit fixes an issue where multiple failures can occur close to each other. In that case, the DefaultScheduler's restart logic competes for each of these failures. If multiple failures refer to the same Execution, it might be that the restart due to one failure handling cleans up the failure already. This leads to an IllegalArgumentException when archiving the next failure refering to the same Execution. The issue was that the code relied on ExecutionVertices instead of Executions. The new implementation relies on the Executions that were present when the failure was handled. Therefore, FailureHandlingResultSnapshot is introduced. It extracts the Execution information from the ExecutionGraph. Additionally, instead of accessing on ExecutionVertex.getTaskNameWithSubtaskIndex() to collect the task name, the new implementation relies on Execution.getVertexWithAttempt(). This enables us to solely rely on the Execution without an extra dependency on the ExecutionVertex. The new implementation also removes the add method from RootExceptionHistoryEntry. This makes the instantiation cleaner. ExceptionHistoryEntryExtractor was replaced by the factory methods RootExceptionHistoryEntry.fromFailureHandlingResultSnapshot and RootExceptionHistoryEntry.fromFailureHandlingResultSnapshot as part of this effort. This closes apache#15640.
- Loading branch information
1 parent
3cf5f5e
commit 317687b
Showing
12 changed files
with
773 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
157 changes: 0 additions & 157 deletions
157
...a/org/apache/flink/runtime/scheduler/exceptionhistory/ExceptionHistoryEntryExtractor.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.