Jialin Qiao created IOTDB-1419:
----------------------------------

             Summary: Continuous compaction is not working in 0.11 when 
enablePartition is true
                 Key: IOTDB-1419
                 URL: https://issues.apache.org/jira/browse/IOTDB-1419
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Compaction
    Affects Versions: 0.11.3, 0.12.0
            Reporter: Jialin Qiao


In each storage group, we maintain a isCompactionWorking field.

 

When execute "merge", for each partition, if the isCompactionWorking is true, 
we skip this partition. Otherwise, we set the isCompactionWorking=true and 
submit a compaction thread. (so, threads of each partition are submitted almost 
simultaneously) When the compaction thread is over, the thread set 
isCompactionWorking=false.

 

So, after setting isCompactionWorking=true for the first partition, even the 
first partition do not need to be merged,  when we process other partition, 
this field is still true, other partitions will all be skipped.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to