You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "FengQingxin (Jira)" <ji...@apache.org> on 2022/05/09 02:40:00 UTC
[jira] [Assigned] (IOTDB-2126) The content of the tsfile header is not MAGIC_STRING(TsFile),after IoTDB is restarted, there is no exception and this tsfile is deleted
[ https://issues.apache.org/jira/browse/IOTDB-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
FengQingxin reassigned IOTDB-2126:
----------------------------------
Assignee: Jialin Qiao
> The content of the tsfile header is not MAGIC_STRING(TsFile),after IoTDB is restarted, there is no exception and this tsfile is deleted
> ---------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IOTDB-2126
> URL: https://issues.apache.org/jira/browse/IOTDB-2126
> Project: Apache IoTDB
> Issue Type: Bug
> Components: Core/TsFile
> Affects Versions: 0.12.3, 0.12.4
> Reporter: 刘珍
> Assignee: Jialin Qiao
> Priority: Major
> Attachments: image-2021-12-08-17-21-27-652.png, image-2021-12-08-17-22-10-608.png, image-2021-12-08-17-24-16-631.png
>
>
> rel/0.12 fa2669824e681b34a2704242ad24b82325244a61
> 1. cli :generate test data
> set storage group to root.sg;
> CREATE TIMESERIES root.sg.d_0.s_0 WITH DATATYPE=INT64, ENCODING=PLAIN;
> insert into root.sg.d_0(time,s_0) values(1,100);
> insert into root.sg.d_0(time,s_0) values(2,200);
> *flush*;
> IoTDB> select * from root.sg.d_0;
> +-----------------------------+---------------+
> | Time|root.sg.d_0.s_0|
> +-----------------------------+---------------+
> |1970-01-01T08:00:00.001+08:00| 100|
> |1970-01-01T08:00:00.002+08:00| 200|
> +-----------------------------+---------------+
> Total line number = 2
> 2. ./sbin/stop-server.sh
> [iotdb@i-k2e7btap db]$ ls -l data/data/sequence/root.sg/0/0/
> total 8
> -rw-rw-r-- 1 iotdb iotdb 244 Dec 8 17:10 1638954616788-1-0-0.tsfile
> -rw-rw-r-- 1 iotdb iotdb 57 Dec 8 17:10 1638954616788-1-0-0.tsfile.resource
> 3. vim data/data/sequence/root.sg/0/0/1638954616788-1-0-0.tsfile
> Edit magic_string (TsFile) -> TTFile
> !image-2021-12-08-17-21-27-652.png!
> 4. start-server.sh
> {color:#DE350B}*MAGIC_STRING不正确的tsfile被删除,并且没有异常信息*{color}。
> 1638954616788-1-0-0.tsfile is {color:#DE350B}*deleted*{color}
> {color:#DE350B}*No exception message was thrown*{color}
> !image-2021-12-08-17-22-10-608.png!
> !image-2021-12-08-17-24-16-631.png!
--
This message was sent by Atlassian Jira
(v8.20.7#820007)