You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "EJTTianyu (Jira)" <ji...@apache.org> on 2021/06/10 16:22:00 UTC
[jira] [Created] (IOTDB-1432) level compaction may cause data loss
problem
EJTTianyu created IOTDB-1432:
--------------------------------
Summary: level compaction may cause data loss problem
Key: IOTDB-1432
URL: https://issues.apache.org/jira/browse/IOTDB-1432
Project: Apache IoTDB
Issue Type: Bug
Components: Compaction
Reporter: EJTTianyu
Attachments: image-2021-06-11-00-13-38-217.png, image-2021-06-11-00-15-31-057.png, image-2021-06-11-00-20-59-015.png
The current level compaction of IoTDB does not behave correctly in some cases, resulting in data loss problems.
The problem can be reproduced as follows:
*configuration*
* version:rel/0.11
* compaction_strategy=LEVEL_COMPACTION
* seq_file_num_in_each_level=2
* seq_level_num=2
*Steps to reproduce*
* Start a new IoTDB instance
* Use the cli tool to execute the following commands
{code:java}
insert into root.sg0.d0(timestamp,s0) values(0,0)
flush
insert into root.sg0.d0(timestamp,s0) values(1,1)
insert into root.sg0.d0(timestamp,s1) values(1,1)
select count(*) from root
flush
select count(*) from root
{code}
The execution screenshot is as follows, we can see that the count of the data before and after the merge has changed.
!image-2021-06-11-00-20-59-015.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)