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

compact bug: Exception ArithmeticException: / by zero

    XMLWordPrintableJSON

Details

    Description

      IoTDB report exception when doing compaction

      ==============================

      2022-08-03 19:51:19,878 [pool-15-IoTDB-Compaction_Schedule-root.sg1-0-1] ERROR o.a.i.c.c.t.ScheduledExecutorUtil:179 - Schedule task failed 

      java.lang.ArithmeticException: / by zero

          at org.apache.iotdb.db.engine.compaction.cross.utils.ReadPointCrossCompactionEstimator.calculateReadingUnseqFile(ReadPointCrossCompactionEstimator.java:80)

          at org.apache.iotdb.db.engine.compaction.cross.utils.ReadPointCrossCompactionEstimator.estimateCrossCompactionMemory(ReadPointCrossCompactionEstimator.java:59)

          at org.apache.iotdb.db.engine.compaction.cross.rewrite.selector.RewriteCompactionFileSelector.selectSourceFiles(RewriteCompactionFileSelector.java:182)

          at org.apache.iotdb.db.engine.compaction.cross.rewrite.selector.RewriteCompactionFileSelector.select(RewriteCompactionFileSelector.java:104)

          at org.apache.iotdb.db.engine.compaction.cross.rewrite.RewriteCrossSpaceCompactionSelector.selectCrossSpaceTask(RewriteCrossSpaceCompactionSelector.java:97)

          at org.apache.iotdb.db.engine.compaction.CompactionScheduler.tryToSubmitCrossSpaceCompactionTask(CompactionScheduler.java:149)

          at org.apache.iotdb.db.engine.compaction.CompactionScheduler.scheduleCompaction(CompactionScheduler.java:59)

          at org.apache.iotdb.db.engine.storagegroup.DataRegion.executeCompaction(DataRegion.java:2484)

          at org.apache.iotdb.commons.concurrent.threadpool.ScheduledExecutorUtil.lambda$scheduleWithFixedDelay$1(ScheduledExecutorUtil.java:177)

          at org.apache.iotdb.commons.concurrent.WrappedRunnable$1.runMayThrow(WrappedRunnable.java:44)

          at org.apache.iotdb.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:29)

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)

          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)

      Attachments

        Issue Links

          Activity

            People

              jamber001 Bo Zhang
              jamber001 Bo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: