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

周沛辰 commented on IOTDB-3329:
----------------------------

There are bugs in cross-space files selection before 0.12.5, such as unseq file 
4 is overlap with seq files 1, 2, 3, but since 1 and 3 are being occupied by 
other compactions, only 2 and 4 will be selected for cross-space compaction, 
which will lead to target files overlapped with other seq files before and 
after. Then this file participate in inner-space compaction, which will lead to 
various levels of overlap in the final target file. For example, when the seq 
files 1, 2, 3 is selected in inner space compaction, while seq file 2 overlap 
with 3 due to cross space compaction, then after rewriting by pages in inner 
space compaction will lead a overlap between pages in target file. However, the 
cross file selection bug was fixed in 0.12.5.

> Fix overlap between pages after compaction of IOTDB before 0.13
> ---------------------------------------------------------------
>
>                 Key: IOTDB-3329
>                 URL: https://issues.apache.org/jira/browse/IOTDB-3329
>             Project: Apache IoTDB
>          Issue Type: Bug
>    Affects Versions: 0.12.5
>            Reporter: 周沛辰
>            Assignee: 周沛辰
>            Priority: Major
>         Attachments: image-2022-06-23-00-37-13-119.png
>
>   Original Estimate: 32h
>  Remaining Estimate: 32h
>
> Before v0.13, cross space compaction may result overlap between pages in 
> target files.
> For example, the timestamp of first three pages is larger than the rest pages 
> in one chunk.
> !image-2022-06-23-00-37-13-119.png|width=2236,height=1397!
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to