apache / apache/iotdb

突然停电后,iotdb重启失败

Đang mở
#12,453 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
6.4k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
115

Mô tả

使用iotdb版本号:1.2.2 服务器版本:Linux lyc-uos 4.19.0-91.82.152.uelc20.x86_64 #1 SMP Fri May 12 22:38:01 CST 2023 x86_64 x86_64 x86_64 GNU/Linux
突然停电后来电,其他mysql、redis正常开机启动,iotdb无法正常开机启动,iotdb已配置开机自启,后来手动执行启动脚本start-standalone.sh还是失败,部分日志如下:2024-04-30 13:06:11,854 [pool-37-IoTDB-ClientRPC-Processor-1] ERROR o.a.i.d.a.ClusterAuthorityFetcher:210 - Failed to connect to config node.
2024-04-30 13:06:13,165 [IoTDB-Shutdown-Hook] ERROR o.a.i.d.s.IoTDBShutdownHook:124 - Failed to report shutdown
org.apache.thrift.TException: Error in calling method reportDataNodeShutdown, because: Fail to connect to any config node. Please check status of ConfigNodes or logs of connected DataNode
at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:57)
at org.apache.iotdb.db.protocol.client.ConfigNodeClient$$EnhancerByCGLIB$$713d1e1e.reportDataNodeShutdown()
at org.apache.iotdb.db.service.IoTDBShutdownHook.run(IoTDBShutdownHook.java:119)
Caused by: org.apache.thrift.TException: Fail to connect to any config node. Please check status of ConfigNodes or logs of connected DataNode
at org.apache.iotdb.db.protocol.client.ConfigNodeClient.tryToConnect(ConfigNodeClient.java:268)
at org.apache.iotdb.db.protocol.client.ConfigNodeClient.waitAndReconnect(ConfigNodeClient.java:237)
at org.apache.iotdb.db.protocol.client.ConfigNodeClient.executeRemoteCallWithRetry(ConfigNodeClient.java:345)
at org.apache.iotdb.db.protocol.client.ConfigNodeClient.reportDataNodeShutdown(ConfigNodeClient.java:406)
at org.apache.iotdb.db.protocol.client.ConfigNodeClient$$EnhancerByCGLIB$$713d1e1e.CGLIB$reportDataNodeShutdown$6()
at org.apache.iotdb.db.protocol.client.ConfigNodeClient$$EnhancerByCGLIB$$713d1e1e$$FastClassByCGLIB$$600dc9c5.invoke()
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:53)
... 2 common frames omitted
2024-04-30 13:06:13,165 [IoTDB-Shutdown-Hook] ERROR o.a.i.d.s.IoTDBShutdownHook:127 - Reporting DataNode shutdown failed. The cluster will still take the current DataNode as Running for a few seconds.
[iotdb-log.zip](https://github.com/apache/iotdb/files/15158550/iotdb-log.zip)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với tệp đính kèm iotdb-log.zip và lỗi từ start-standalone.sh, tập trung vào các lỗi kết nối ConfigNode trong ConfigNodeClient và ClusterAuthorityFetcher. Theo dõi đường dẫn khởi động và so sánh các lỗi shutdown hook được báo cáo với trạng thái ConfigNode; được xem là hoàn thành khi quá trình khởi động đã cấu hình hoàn tất thành công sau khi bị gián đoạn nguồn điện.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java, linux
Lĩnh vực
databases
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.