FAQ-iceberg-文件合并失败

适用模块
Iceberg
使用示例
1.在amoro查看文件合并失败报错内容
FAQ-iceberg-文件合并失败 - 图1 FAQ-iceberg-文件合并失败 - 图2
报错代码如下:
caused by: org.apache.iceberg.exceptions.ValidationException: Cannot commit, found undeleted replaced data files: GenericDataFile{content=DATA, file_path=hdfs://easyops.cluster2/user/dfc/hive_db/dfc_test.db/sys_user_common_menu/data/opt_mon=202506/opt_day=20250604/00000-0-61667001-12ea-4612-ba64-cb71248b0f84-00130.parquet, file_format=PARQUET, spec_id=0, partition=PartitionData{opt_mon=202506, opt_day=20250604}, record_count=46, file_size_in_bytes=9384, ...}
2.该报错一般是该表同时有其他写入操作,一般是多写冲突导致的,amoro 会在重试的时候基于最新的快照 重新执行,自动恢复。 这种异常可以忽略,如下观察后续已经自动恢复
FAQ-iceberg-文件合并失败 - 图3

作者:张鸿运