You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "pgaref (via GitHub)" <gi...@apache.org> on 2023/05/19 06:37:30 UTC
[GitHub] [flink] pgaref opened a new pull request, #22608: [FLINK-31893][runtime] Introduce AdaptiveBatchScheduler failure enrichment/labeling
pgaref opened a new pull request, #22608:
URL: https://github.com/apache/flink/pull/22608
https://issues.apache.org/jira/browse/FLINK-31893
* Label failures part of AdaptiveBatchScheduler#initializeVerticesIfPossible replacing failJob call with handleGlobalFailure on a unrecoverable error
* Introduce FailingExecutionGraphFactory for testing purposes, creating Execution Graphs that fail on initialization with JobException
* Extend AdaptiveBatchSchedulerTest to validate functionality
--
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] dmvk merged pull request #22608: [FLINK-31893][runtime] Introduce AdaptiveBatchScheduler failure enrichment/labeling
Posted by "dmvk (via GitHub)" <gi...@apache.org>.
dmvk merged PR #22608:
URL: https://github.com/apache/flink/pull/22608
--
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] pgaref commented on pull request #22608: [FLINK-31893][runtime] Introduce AdaptiveBatchScheduler failure enrichment/labeling
Posted by "pgaref (via GitHub)" <gi...@apache.org>.
pgaref commented on PR #22608:
URL: https://github.com/apache/flink/pull/22608#issuecomment-1555179837
@dmvk @zhuzhurk this is ready for review too :) Thanks!
--
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] reswqa commented on a diff in pull request #22608: [FLINK-31893][runtime] Introduce AdaptiveBatchScheduler failure enrichment/labeling
Posted by "reswqa (via GitHub)" <gi...@apache.org>.
reswqa commented on code in PR #22608:
URL: https://github.com/apache/flink/pull/22608#discussion_r1199639985
##########
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/adaptivebatch/AdaptiveBatchSchedulerTest.java:
##########
@@ -91,6 +95,31 @@ void setUp() {
taskRestartExecutor = new ManuallyTriggeredScheduledExecutor();
}
+ @Test
+ void testExceptionHistoryWithGlobalFailureLabels() throws Exception {
+ final JobGraph jobGraph = createJobGraph();
+ final TestingFailureEnricher failureEnricher = new TestingFailureEnricher();
+ final SchedulerBase scheduler =
+ createFailingExecutionGraphScheduler(
+ jobGraph,
+ Collections.singleton(failureEnricher),
+ createCustomParallelismDecider(10),
+ BatchExecutionOptions.ADAPTIVE_AUTO_PARALLELISM_MAX_PARALLELISM
+ .defaultValue());
+ final DefaultExecutionGraph graph = (DefaultExecutionGraph) scheduler.getExecutionGraph();
+ // Triggered failure on initializeJobVertex that should be labeled
+ try {
+ scheduler.startScheduling();
+ } catch (IllegalStateException e) {
+ // expected due to failure
+ }
Review Comment:
How about it replacing with `Assertions.assertThatThrowBy`.
--
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 #22608: [FLINK-31893][runtime] Introduce AdaptiveBatchScheduler failure enrichment/labeling
Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #22608:
URL: https://github.com/apache/flink/pull/22608#issuecomment-1554085173
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "9f1ad39239ae1e44cb8211d2bfa474694f3f0dbf",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9f1ad39239ae1e44cb8211d2bfa474694f3f0dbf",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 9f1ad39239ae1e44cb8211d2bfa474694f3f0dbf 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] dmvk commented on a diff in pull request #22608: [FLINK-31893][runtime] Introduce AdaptiveBatchScheduler failure enrichment/labeling
Posted by "dmvk (via GitHub)" <gi...@apache.org>.
dmvk commented on code in PR #22608:
URL: https://github.com/apache/flink/pull/22608#discussion_r1202427606
##########
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/adaptivebatch/AdaptiveBatchSchedulerTest.java:
##########
@@ -91,6 +96,28 @@ void setUp() {
taskRestartExecutor = new ManuallyTriggeredScheduledExecutor();
}
+ @Test
+ void testExceptionHistoryWithGlobalFailureLabels() throws Exception {
Review Comment:
for the sake of completeness, it would be nice to explicitly configure the restart strategy
--
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] pgaref commented on a diff in pull request #22608: [FLINK-31893][runtime] Introduce AdaptiveBatchScheduler failure enrichment/labeling
Posted by "pgaref (via GitHub)" <gi...@apache.org>.
pgaref commented on code in PR #22608:
URL: https://github.com/apache/flink/pull/22608#discussion_r1199660170
##########
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/adaptivebatch/AdaptiveBatchSchedulerTest.java:
##########
@@ -91,6 +95,31 @@ void setUp() {
taskRestartExecutor = new ManuallyTriggeredScheduledExecutor();
}
+ @Test
+ void testExceptionHistoryWithGlobalFailureLabels() throws Exception {
+ final JobGraph jobGraph = createJobGraph();
+ final TestingFailureEnricher failureEnricher = new TestingFailureEnricher();
+ final SchedulerBase scheduler =
+ createFailingExecutionGraphScheduler(
+ jobGraph,
+ Collections.singleton(failureEnricher),
+ createCustomParallelismDecider(10),
+ BatchExecutionOptions.ADAPTIVE_AUTO_PARALLELISM_MAX_PARALLELISM
+ .defaultValue());
+ final DefaultExecutionGraph graph = (DefaultExecutionGraph) scheduler.getExecutionGraph();
+ // Triggered failure on initializeJobVertex that should be labeled
+ try {
+ scheduler.startScheduling();
+ } catch (IllegalStateException e) {
+ // expected due to failure
+ }
Review Comment:
Thanks for the suggestion! Added :)
--
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] pgaref commented on pull request #22608: [FLINK-31893][runtime] Introduce AdaptiveBatchScheduler failure enrichment/labeling
Posted by "pgaref (via GitHub)" <gi...@apache.org>.
pgaref commented on PR #22608:
URL: https://github.com/apache/flink/pull/22608#issuecomment-1560231799
> Looks good overall, I'm just not a big fan of introducing a new impl. of the execution graph. Can we maybe do something along these lines instead? https://gist.github.com/dmvk/7481082e5584c9a1eff377282d6b93df
Thanks @dmvk ! Was also looking for a smarter way to throw on ExecutionGraph init -- Using the same intermediate dataset id on initializeJobVertex is perfect! Updated :)
--
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] reswqa commented on a diff in pull request #22608: [FLINK-31893][runtime] Introduce AdaptiveBatchScheduler failure enrichment/labeling
Posted by "reswqa (via GitHub)" <gi...@apache.org>.
reswqa commented on code in PR #22608:
URL: https://github.com/apache/flink/pull/22608#discussion_r1199639985
##########
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/adaptivebatch/AdaptiveBatchSchedulerTest.java:
##########
@@ -91,6 +95,31 @@ void setUp() {
taskRestartExecutor = new ManuallyTriggeredScheduledExecutor();
}
+ @Test
+ void testExceptionHistoryWithGlobalFailureLabels() throws Exception {
+ final JobGraph jobGraph = createJobGraph();
+ final TestingFailureEnricher failureEnricher = new TestingFailureEnricher();
+ final SchedulerBase scheduler =
+ createFailingExecutionGraphScheduler(
+ jobGraph,
+ Collections.singleton(failureEnricher),
+ createCustomParallelismDecider(10),
+ BatchExecutionOptions.ADAPTIVE_AUTO_PARALLELISM_MAX_PARALLELISM
+ .defaultValue());
+ final DefaultExecutionGraph graph = (DefaultExecutionGraph) scheduler.getExecutionGraph();
+ // Triggered failure on initializeJobVertex that should be labeled
+ try {
+ scheduler.startScheduling();
+ } catch (IllegalStateException e) {
+ // expected due to failure
+ }
Review Comment:
How about replacing it with `Assertions.assertThatThrowBy`.
--
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] dmvk commented on a diff in pull request #22608: [FLINK-31893][runtime] Introduce AdaptiveBatchScheduler failure enrichment/labeling
Posted by "dmvk (via GitHub)" <gi...@apache.org>.
dmvk commented on code in PR #22608:
URL: https://github.com/apache/flink/pull/22608#discussion_r1202413078
##########
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/adaptivebatch/AdaptiveBatchSchedulerTest.java:
##########
@@ -91,6 +96,28 @@ void setUp() {
taskRestartExecutor = new ManuallyTriggeredScheduledExecutor();
}
+ @Test
+ void testExceptionHistoryWithGlobalFailureLabels() throws Exception {
Review Comment:
Maybe this should state something along the lines of "failure during vertex initialization"
--
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