当前位置:网站首页>【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边栏推荐
- Programming in the novel [serial 11] the moon bends in the yuan universe
- 终结重复开发,两三下搞定登录系统个性化
- Hcip - Comprehensive Experiment of OSPF
- Daily model series: July 11, 2022
- L1-088 静静的推荐(测试点1)
- SDL图像显示
- 焱融科技入选北京市 2022 年度“专精特新”,领航混合云文件存储
- Microservice splitting for stand-alone projects
- 【论文笔记】基于深度学习的视觉检测及抓取方法
- Tree array
猜你喜欢

终结重复开发,两三下搞定登录系统个性化

Nacos new configuration management
![[troubleshooting] common problems and solutions when installing MySQL in Windows system](/img/45/339bda7ecf8879999d8ff128c1d3ab.png)
[troubleshooting] common problems and solutions when installing MySQL in Windows system

Microservice splitting for stand-alone projects

解决接口跨域问题和node操作MySQL

Magic Usage of mongodb $symbol +mongo data type

【C语言-自定义类型】还能这样整?

Idea debug according to conditional breakpoints
![[Hongke] Introduction to genicam protocol](/img/a5/91a1d24a47ea2e3265530778d6fc1f.png)
[Hongke] Introduction to genicam protocol

Towhee daily model weekly report
随机推荐
Etcd database source code analysis - initialize etcdserver structure
Zero basic C language
[handwritten numeral recognition] handwritten numeral recognition based on lenet network with matlab code
Hausdorff loss function for semantic segmentation
It's also very difficult. I'm not only tired of writing by myself
Express
Two structures ifconf and ifreq
Static routing!! Static routing!! Static routing!!
After working hard, I found that there were so many messes around
Code Capriccio: question skimming record (under update)
QT serial communication
codeforces每日5题(均1500)-第十七天
Daily model series: July 11, 2022
【虹科】激光雷达安全系统:让世界更安全
2、 Pinda general permission system__ Project construction
Etcd database source code analysis -- etcdserver bootstrap recover store from snapshot
Latest fruit flstudio20.9 low version upgrade high version tutorial
Day 5 training
QR decomposition for matrix inversion -- C engineering implementation
How to write a string field in MySQL if its value is not empty?