Eric Pai created IOTDB-5632:
-------------------------------
Summary: [Compaction] Cross compaction may be stucked if there's
only 1 unsequence file
Key: IOTDB-5632
URL: https://issues.apache.org/jira/browse/IOTDB-5632
Project: Apache IoTDB
Issue Type: Bug
Components: Core/Compaction
Affects Versions: master branch, 0.13.3, 1.0.1
Reporter: Eric Pai
Assignee: Eric Pai
See
[https://github.com/apache/iotdb/blob/master/server/src/main/java/org/apache/iotdb/db/engine/compaction/selector/impl/RewriteCrossSpaceCompactionSelector.java#L194]
The first unsequence file will always be selected even if it has exceed the
compaction memory limit. But when the task is scheduled, it will check the
available memory again before doing compaction actually (See codes at
[https://github.com/apache/iotdb/blob/master/server/src/main/java/org/apache/iotdb/db/rescon/SystemInfo.java#L184-L193)]
. Once the unsequence file is larger than the compaction memory limit, the
for-loop will never end.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)