Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-5632

[Compaction] Cross compaction may be stucked if there's only 1 unsequence file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • master branch, 0.13.3, 1.0.1
    • None
    • Core/Compaction
    • None

    Description

      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.

       

      Attachments

        Activity

          People

            ChouBenson 周沛辰
            ericpai Eric Pai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: