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)。

相关推荐
Zong_09152 小时前
AutoCompose - 携程自动编排【开源】
java·spring boot·开源·自动编排
heart000_13 小时前
MySQL事务与锁机制详解:确保数据一致性的关键【MySQL系列】
数据库·mysql
一眼青苔3 小时前
MySQL 如何判断某个表中是否存在某个字段
数据库·mysql
西柚小萌新3 小时前
【大模型:知识图谱】--3.py2neo连接图数据库neo4j
数据库·知识图谱·neo4j
wangfenglei1234563 小时前
mybatis打印完整的SQL,p6spy
数据库·sql·mybatis
__风__3 小时前
PostgreSQL ERROR: out of shared memory处理
数据库·postgresql
占星安啦4 小时前
一个html实现数据库自定义查询
java·前端·javascript·数据库·动态查询
love530love4 小时前
Windows 下部署 SUNA 项目:虚拟环境尝试与最终方案
前端·人工智能·windows·后端·docker·rust·开源
天空之城夢主4 小时前
MySQL 全量、增量备份与恢复
数据库·mysql·oracle
Elastic 中国社区官方博客4 小时前
连接关键点:使用 ES|QL 联接实现更丰富的可观测性洞察
大数据·数据库·sql·elasticsearch·搜索引擎·全文检索