Details
-
Improvement
-
Status: Resolved
-
Blocker
-
Resolution: Done
-
1.15.0
Description
FLINK-21439 adds support for the exception history to the adaptive scheduler.
To evaluate the functionality follow the following steps:
Add the following lines to your flink config
taskmanager.host: localhost # a workaround scheduler-mode: reactive restart-strategy: fixeddelay restart-strategy.fixed-delay.attempts: 100
Create the test job JAR and move it to the usrlib folder. (You may have to create it.) Here "$FLINK-HOME" refers to the folder of your flink installation.
$ git clone git@github.com:metaswirl/checkpoint-crasher-job.git $ cd checkpoint-crasher-job $ mvn install $ mv target/checkpoint-crasher-job-0.1.jar $FLINK_HOME/usrlib
Start the job
$ bin/taskmanager.sh start
$ bin/taskmanager.sh start
$ bin/taskmanager.sh start
$ bin/standalone-job.sh start --main-class org.apache.niklassemmler.flinkjobs.CheckpointCrasherJob
You should be able to find the exception `java.lang.RuntimeException: Test exception` in the web interface under Jobs->Running Jobs->Exceptions.
Attachments
Issue Links
- is caused by
-
FLINK-21439 Adaptive Scheduler: Add support for exception history
- Closed