Flink oracle cdc遇到过 None of log files contains offset SCN 这个问题没?资料说设置这个.log.mining.transaction.retention.hours参数,但是设置了没用,还是报错.offsetSCN=579279935580, commitOffsetSCN=579279935416
2024-04-11 11:08:31,717 INFO org.apache.flink.streaming.runtime.operators.sink.AbstractStreamingCommitterHandler [] - Committing the state for checkpoint 4
2024-04-11 11:08:56,552 ERROR io.debezium.connector.oracle.logminer.LogMinerHelper [] - Mining session stopped due to the java.lang.IllegalStateException: None of log files contains offset SCN: 579279993105, re-snapshot is required.
2024-04-11 11:08:56,552 ERROR io.debezium.pipeline.ErrorHandler [] - Producer failure
java.lang.IllegalStateException: None of log files contains offset SCN: 579279993105, re-snapshot is required.
at io.debezium.connector.oracle.logminer.LogMinerHelper.setLogFilesForMining(LogMinerHelper.java:484) ~[flink-sql-connector-oracle-cdc-2.3.0.jar:2.3.0]
at io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSource.initializeRedoLogsForMining(LogMinerStreamingChangeEventSource.java:378) ~[flink-sql-connector-oracle-cdc-2.3.0.jar:2.3.0]
at io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSource.execute(LogMinerStreamingChangeEventSource.java:246) ~[flink-sql-connector-oracle-cdc-2.3.0.jar:2.3.0]
at io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSource.execute(LogMinerStreamingChangeEventSource.java:71) ~[flink-sql-connector-oracle-cdc-2.3.0.jar:2.3.0]
at io.debezium.pipeline.ChangeEventSourceCoordinator.streamEvents(ChangeEventSourceCoordinator.java:160) ~[flink-sql-connector-mysql-cdc-2.3.0.jar:2.3.0]
at io.debezium.pipeline.ChangeEventSourceCoordinator.lambda$start$0(ChangeEventSourceCoordinator.java:122) ~[flink-sql-connector-mysql-cdc-2.3.0.jar:2.3.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_181]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut
归档日志被删了会报这个错.归档日志的清除策略要保留最近一段时间的,比如保留最近一天的。另外个情况就是丛savepoint或checkpoint恢复,时间间隔太久了被删了也正常。此回答来自钉群Flink CDC 社区。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
实时计算Flink版是阿里云提供的全托管Serverless Flink云服务,基于 Apache Flink 构建的企业级、高性能实时大数据处理系统。提供全托管版 Flink 集群和引擎,提高作业开发运维效率。