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

suchenglong commented on IOTDB-4811:
------------------------------------

The cause of the problem:
Due to the change of the implementation of IStateMachine#takeSnapshot 
interface, the snapshots (snapshotId:.tMP_XX_xx) generated by the 
implementation of the snapshot interface are in the same place, and 
snapshot.log is in the consensus directory. The hard link file of the data is 
in the data/snapshot directory. 

The hard link file path uses only the snapshotId information of the 
takeSnapshot interface to generate a snapshot path. As a result, after the 
takeSnapshot interface is invoked to generate a snapshot, only the path in the 
consensus directory is migrated. The file path under data/snapshot is not 
migrated. 

Modification Method: 

A new takeSnapshot interface is added in IStateMachine and receives two 
parameters. One is the path of the snapshot file directory and the other is 
snapshotId. In addition, snapshotId can be used to create a snapshot directory.
 

> [ snapshot dir ] The folder name contains ".tmp."
> -------------------------------------------------
>
>                 Key: IOTDB-4811
>                 URL: https://issues.apache.org/jira/browse/IOTDB-4811
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: mpp-cluster
>    Affects Versions: 0.14.0-SNAPSHOT
>            Reporter: 刘珍
>            Assignee: suchenglong
>            Priority: Minor
>         Attachments: more_dev.conf, screenshot-1.png, screenshot-2.png, 
> screenshot-3.png
>
>
> master_1031_76b947f
> 3rep , 3C3D
> schema region : ratis
> data region : ratis
> take snapshot ,有2个问题:
> 问题1 :
> after take snapshot , data snapshot dir {color:#DE350B}*contains 
> ".tmp."*{color} (And there is no dataregion information )
>  !screenshot-1.png! 
> 问题2:
> snapshot log dir :
>  !screenshot-2.png! 
> {color:#DE350B}*但是{color:#DE350B}*日志里的这个路径不正确*{color}:*{color}
>  !screenshot-3.png! 
> 测试环境
> 1. 192.168.10.68 / 62 /66   72CPU 256GB
> ConfigNode
> MAX_HEAP_SIZE="8G"
> Common :
> query_timeout_threshold=36000000
> enable_partition=false
> schema_region_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
> data_region_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
> schema_replication_factor=3
> data_replication_factor=3
> DataNode :
> MAX_HEAP_SIZE="192G"
> MAX_DIRECT_MEMORY_SIZE="32G"
> dn_consensus_dir=/data/liuzhen_test/master_1031_76b947f/data_consensus
> 2. bm 配置见附件



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

Reply via email to