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

相关推荐
杜哥无敌几秒前
在SQL SERVER 中,用SSMS 实现存储过程的每日自动调用
数据库
蚂蚁数据AntData几秒前
DB-GPT 0.7.3 版本更新:支持Qwen3 Embedding和Reranker模型、支持知识库自定义检索策略等
大数据·开源·全文检索·数据库架构
Warren9814 分钟前
MySQL查询语句详解
java·开发语言·数据库·mysql·算法·蓝桥杯·maven
多读书19322 分钟前
MYSQL:JDBC编程
数据库·mysql
凯禾瑞华CGA老年综合评估1 小时前
借助CGA匹兹堡睡眠质量指数量表评估
数据库·cga老年综合评估系统·匹兹堡睡眠质量指数量表
青云交2 小时前
吃透 B + 树:MySQL 索引的底层逻辑与避坑指南
数据库·mysql 索引·技术栈深潜计划·b + 树实现·innodb 优化·索引失效案例·python 模拟 b + 树
寅时码2 小时前
从“一键部署”到“可观测、可定制的发布流”:我如何打造一个企业级部署工具
运维·开源·node.js
盖世英雄酱581362 小时前
事务报错,为何数据还是插入成功了❓
java·数据库·后端
钢铁男儿2 小时前
C# 枚举器和迭代器(常见迭代器模式)
数据库·c#·迭代器模式
哥哥还在IT中3 小时前
脚本统计MongoDB集合表数据量
数据库·mongodb