当前位置:网站首页>【Flink】Flink 设置检查点失败一次就报错 setTolerableCheckpointFailureNumber 不起作用
【Flink】Flink 设置检查点失败一次就报错 setTolerableCheckpointFailureNumber 不起作用
2022-07-17 09:26:00 【九师兄】

1.概述
请问大家,Flink怎么让检查点失败,任务马上就停止呢?
Flink 1.14.4,我把检查点设置到了一个不存在的路径,检查点失败,但是任务没有停止。
请问怎么样能让检查点失败导致任务失败停止?
尝试过RestartStrategies.noRestart,以及setTolerableCheckpointFailureNum为0,但是都没有用
对应代码如下

最终解决 : -Drestart-strategy=none 设置了这个就可以了。把相关重启参数去掉
2.源码分析
检测点相关的设置都在 CheckpointConfig 中,设置检查点失败容忍值的时候,最小都是0.0代表一次失败就报错
/** * Determines the threshold that we tolerance declined che边栏推荐
- Jsp+ajax+servlet+mysql to realize addition, deletion, modification and query (I)
- 【虹科】GenICam协议入门
- mysql 初始化修改密码问题
- SSM实现一对一查询实战详细教程(一)
- Encapsulation API, request interception, response interception, authentication timeliness
- Log desensitization - Reference
- Block 的分类
- OGG中token的使用
- QT serial communication
- Etcd database source code analysis -- etcdserver bootstrap recover store from snapshot
猜你喜欢

Scope and lifecycle of beans
![[paper notes] Research on end positioning of grab manipulator based on multi-sensor data fusion](/img/bb/9db231fe4b01c0f3f91e67143bda0c.png)
[paper notes] Research on end positioning of grab manipulator based on multi-sensor data fusion
分库分表

【排错必看】Windows系统安装mysql时常见问题及解决方法

单机项目进行微服务拆分

日志脱敏-参考

C# - this 的用法

2022年上海市安全员C证国家题库及答案

Case sharing | build a one-stop data development platform for hehe information based on linkis+dss

Idea debug according to conditional breakpoints
随机推荐
单机项目进行微服务拆分
Cocos shader basics 7
2022 Shanghai safety officer C certificate national question bank and answers
使用<pre>和JSON.stringify处理网页展示JSON的格式
Jsp+Ajax+Servlet+Mysql实现增删改查(一)
MySQL存储函数和触发器
SharePoint access brief notes
[paper notes] Research on end positioning of grab manipulator based on multi-sensor data fusion
How long does software testing take?
【CTF】pwn2_ sctf_ two thousand and sixteen
Day 5 training
Express
Day 6 training
【虹科】GenICam协议入门
二、品达通用权限系统__项目搭建
LabVIEW32位与64位的兼容性
两个结构体 ifconf 和 ifreq
QT serial communication
Etcd database source code analysis -- etcdserver bootstrap recover store from snapshot
每日模型系列:2022.07.11