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

[compaction]Meet error in cross space compaction

    XMLWordPrintableJSON

Details

    • 2022-11-Cluster

    Description

      1.Start a 1C1D wit default config

      2.using a bm to do write and read operations(config as the attachment unseq_rw)

      2022-11-25 15:41:48,120 [pool-19-IoTDB-Compaction-8] ERROR o.a.i.d.e.c.c.CrossSpaceCompactionTask:200 - root.test.g_5-15 [Compaction] Meet errors in cross space compaction. 
      org.apache.iotdb.tsfile.exception.TsFileRuntimeException: Error occurred while reading a time series metadata block.
          at org.apache.iotdb.tsfile.read.TsFileDeviceIterator.next(TsFileDeviceIterator.java:91)
          at org.apache.iotdb.db.engine.compaction.inner.utils.MultiTsFileDeviceIterator.nextDevice(MultiTsFileDeviceIterator.java:118)
          at org.apache.iotdb.db.engine.compaction.performer.impl.ReadPointCompactionPerformer.perform(ReadPointCompactionPerformer.java:117)
          at org.apache.iotdb.db.engine.compaction.cross.CrossSpaceCompactionTask.doCompaction(CrossSpaceCompactionTask.java:153)
          at org.apache.iotdb.db.engine.compaction.task.AbstractCompactionTask.start(AbstractCompactionTask.java:76)
          at org.apache.iotdb.db.engine.compaction.CompactionWorker.run(CompactionWorker.java:66)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)

       

      After that we try to reduce this and get the tsfile in error log,but we got another error msg like below: (log_inner.tar.gz)

      2022-11-25 22:59:46,089 [pool-19-IoTDB-Compaction-10] ERROR o.a.i.d.e.c.i.InnerSpaceCompactionTask:236 - root.test.g_4-47 [Compaction] Meet errors in inner space compaction.
      java.nio.channels.ClosedChannelException: null
              at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:110)
              at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:721)
              at org.apache.iotdb.tsfile.read.reader.LocalTsFileInput.read(LocalTsFileInput.java:95)
              at org.apache.iotdb.tsfile.utils.ReadWriteIOUtils.readAsPossible(ReadWriteIOUtils.java:806)
              at org.apache.iotdb.tsfile.read.TsFileSequenceReader.readData(TsFileSequenceReader.java:1381)
              at org.apache.iotdb.tsfile.read.TsFileSequenceReader.readData(TsFileSequenceReader.java:1407)
              at org.apache.iotdb.tsfile.read.TsFileSequenceReader.getDeviceTimeseriesMetadata(TsFileSequenceReader.java:934)
              at org.apache.iotdb.db.engine.compaction.inner.utils.MultiTsFileDeviceIterator.getAllSchemasOfCurrentDevice(MultiTsFileDeviceIterator.java:155)
              at org.apache.iotdb.db.engine.compaction.performer.impl.ReadPointCompactionPerformer.compactNonAlignedSeries(ReadPointCompactionPerformer.java:192)
              at org.apache.iotdb.db.engine.compaction.performer.impl.ReadPointCompactionPerformer.perform(ReadPointCompactionPerformer.java:126)
              at org.apache.iotdb.db.engine.compaction.inner.InnerSpaceCompactionTask.doCompaction(InnerSpaceCompactionTask.java:145)
              at org.apache.iotdb.db.engine.compaction.task.AbstractCompactionTask.start(AbstractCompactionTask.java:76)
              at org.apache.iotdb.db.engine.compaction.CompactionWorker.run(CompactionWorker.java:66)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      2022-11-25 22:59:46,096 [pool-19-IoTDB-Compaction- 

      Attachments

        1. logs.tar.gz
          7.90 MB
          FengQingxin
        2. unseq_rw
          14 kB
          FengQingxin
        3. image-2022-11-25-23-11-04-650.png
          172 kB
          FengQingxin
        4. logs_inner.tar.gz
          4.12 MB
          FengQingxin

        Issue Links

          Activity

            People

              ChouBenson 周沛辰
              QX.Feng FengQingxin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: