IoTDB 断电后无法启动 DataNode,日志提示 Meet error while starting up

问题

IoTDB 1.3.2 版本,断电后 IoTDB 的 DataNode 无法启动,日志如下:

java 复制代码
2024-12-16 14:45:41,350 [main] ERROR o.a.i.db.service.DataNode:562 - Meet error while starting up. 
org.apache.iotdb.commons.exception.StartupException: For input string: "���"
  at org.apache.iotdb.db.pipe.progress.SimpleConsensusProgressIndexAssigner.start(SimpleConsensusProgressIndexAssigner.java:69)
  at org.apache.iotdb.db.pipe.agent.runtime.PipeDataNodeRuntimeAgent.preparePipeResources(PipeDataNodeRuntimeAgent.java:75)
  at org.apache.iotdb.db.service.DataNode.preparePipeResources(DataNode.java:950)
  at org.apache.iotdb.db.service.DataNode.prepareResources(DataNode.java:549)
  at org.apache.iotdb.db.service.DataNode.setUp(DataNode.java:599)
  at org.apache.iotdb.db.service.DataNode.active(DataNode.java:560)
  at org.apache.iotdb.db.service.DataNode.doAddNode(DataNode.java:215)
  at org.apache.iotdb.db.service.DataNodeServerCommandLine.run(DataNodeServerCommandLine.java:81)
  at org.apache.iotdb.commons.ServerCommandLine.doMain(ServerCommandLine.java:58)
  at org.apache.iotdb.db.service.DataNode.main(DataNode.java:183)

问题原因

断电时文件系统产生某些意外错误,导致 data/datanode/system/pipe/reboot_times.txt 文件写入内容异常。

解决方案

出现该日志导致无法启动时,区分两种情况进行处置:

  1. 如果系统中不存在 pipe 的使用,手动删除文件 data/datanode/system/pipe/reboot_times.txt 即可。

  2. 如果系统中存在 pipe 的使用,请联系社区开发同学提供安全解决方案(可以参考 https://github.com/apache/iotdb/pull/14594 自行修改源码后启动,或升级最新社区版本 > v1.3.3)。

相关推荐
weixin_511255215 小时前
MySQL升级记录
数据库·mysql
程序猿乐锅6 小时前
【黑马点评 | 第八篇】Redisson分布式锁
java·数据库·spring boot·redis·分布式·spring·缓存
Leo.yuan7 小时前
2026年本地化Data Agent优质厂商盘点:哪些产品更适合企业生产环境
大数据·数据库·人工智能
Java后端的Ai之路7 小时前
SSE 接口设计 vs Agent UI:四个开源项目,把「模型吐词」和「界面更新」拆开后,我看懂了差距
ui·开源·sse·agui·agentui
做运维的阿瑞7 小时前
数据库增删改的安全写法
数据库·sql·mysql
千桐科技7 小时前
数据中台 ETL 编排实践:基于 qData 开源版实现数据接入、转换与调度执行
数据仓库·开源·etl
程序边界7 小时前
迁移评估不再拍脑袋,这个数据迁移工具的量化报告把我救了(上)
数据库
也非非也7 小时前
DeepSeek没发公告,但它把Agent装进了你的电脑
人工智能·开源·agent·deepseek·dsh
阿狗童鞋8 小时前
Redis实战指南
数据库·redis·缓存
分布式存储与RustFS8 小时前
纠删码到底吃掉了多少容量:EC:4、EC:8 的利用率与容错怎么算
运维·云原生·开源·对象存储·分布式存储·s3·性能基准