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

Compaction on deleted target file error and shutdown service deadlock

    XMLWordPrintableJSON

Details

    Description

      Repeat scenario:

      In an inner space compaction, after the compaction ends, the target tsfile is empty and deleted. Then there're gitchs happened.

      Bug summerize:

      1. InnerSpaceCompactionTask passes a immutable list to ReadPointCompactionPerformer and the elements deleted in the updatePlanIndexes().
      2. InnerSpaceCompactionTask passes a targetTsFileResource with deleted tsfile casued by empty data to TsFileManager, which tries to get a valid tsfile name but failed.
      3. Deadlock of shutdown CompactionTaskManager

                 - main thread called stop, locked the CompactionTaskManager object with a synchronized block.

                 - AbstractCompactionTask receives the Interrupt signal, and calls the CompactionTaskManager.removeRunningTaskFuture(), which is waiting for the CompactionTaskManager to be free.

                 - the waitTermination waits infinitly.

       

      See this error

      After this bug fiixed, another one happens

       

      Another bug: After kill the process, the signal is shadowed

      Attachments

        1. image-2022-04-27-13-23-53-524.png
          2.14 MB
          Eric Pai
        2. image-2022-04-27-12-05-40-760.png
          633 kB
          Eric Pai
        3. image-2022-04-27-12-05-24-540.png
          118 kB
          Eric Pai
        4. image-2022-04-27-11-51-04-454.png
          786 kB
          Eric Pai

        Activity

          People

            ericpai Eric Pai
            ericpai Eric Pai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: