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

Fix target files should not be select to participate in other compaction task

    XMLWordPrintableJSON

Details

    • 2022-12-Storage

    Description

      2022-12-20 09:23:53,086 [pool-12-IoTDB-Recovery-Thread-Pool-1] ERROR o.a.i.d.e.c.t.CompactionRecoverTask:300 - root.iot-0 [Compaction][ExceptionHandler] target file sequence/root.iot/0/0/1670572962795-1051-2-1.inner is not complete, and some source files is lost, do nothing. Set allowCompaction to false 
      2022-12-20 09:23:53,087 [pool-12-IoTDB-Recovery-Thread-Pool-1] ERROR o.a.i.d.e.c.t.CompactionRecoverTask:133 - root.iot-0 [Compaction][Recover] Failed to recover compaction, set allowCompaction to false

      Description

      When the system is restarted, a compaction error is reported: the source file is deleted and the target file is also deleted, which will set allowCompaction to false.

       

      Reason

      Target files are selected to participate in other compaction tasks before the end of the current task, causing unexpected errors.

       

      Solution

      Set target file to COMPACTING until the end of task, so that it can be selected to participate in other task after this task finishes.

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: