You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Bo Zhang (Jira)" <ji...@apache.org> on 2023/05/19 07:24:00 UTC

[jira] [Commented] (IOTDB-5902) IoTDB cluster can not restart successfully

    [ https://issues.apache.org/jira/browse/IOTDB-5902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17724164#comment-17724164 ] 

Bo Zhang commented on IOTDB-5902:
---------------------------------

*Root-cause 分析:*

DataNode 持久化 schema 信息到本地时,序列化 和 反序列化 代码 没有对齐。

序列化使用了 enum 的  ordinal(),反序列化使用自定义 的 deserialize(),二者功能没对齐。

导致 cluster 重启时读取本地的 schema 持久化文件 mlog.bin 时,产生了错误。

*问题触发条件:*

1)cluster 有配置 : schema_region_consensus_protocol_class=org.apache.iotdb.consensus.simple.SimpleConsensus

2)压缩方式使用了 LZ4

> IoTDB cluster can not restart successfully
> ------------------------------------------
>
>                 Key: IOTDB-5902
>                 URL: https://issues.apache.org/jira/browse/IOTDB-5902
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: Core/Cluster
>            Reporter: Bo Zhang
>            Priority: Major
>
> IoTDB cluster can not restart successfully when cluster has had user data.
> !https://aone.alibaba-inc.com/v2/api/workitem/adapter/file/url?fileIdentifier=workitem%2Falibaba%2Fdefault%2F1682250119245image.png!
> Note:
> If  following the comments in above graph to delete mlog.bin and restart again, the result is that : 
> DN can restart successfully, but can not query any user data.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)