apache / apache/iotdb

[Bug] SubCompactionTask meet errors.ArrayIndexOutOfBoundsException: null

Offen
#9,968 3 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
6.4k
Forks
1.2k
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
115

Beschreibung

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Version

iotdb-v1.1.0

### Describe the bug and provide the minimal reproduce step

2023-05-29 09:09:54,858 [pool-24-IoTDB-Sub-Compaction-35] ERROR o.a.i.c.c.t.WrappedThreadPoolExecutor:108 - Exception in thread pool org.apache.iotdb.threadpool:type=Sub-Compaction
java.lang.ArrayIndexOutOfBoundsException: null
2023-05-29 09:09:54,858 [pool-23-IoTDB-Compaction-10] ERROR o.a.i.d.e.c.e.p.i.FastCompactionPerformer:260 - [Compaction] SubCompactionTask meet errors
java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.iotdb.db.engine.compaction.execute.performer.impl.FastCompactionPerformer.compactNonAlignedSeries(FastCompactionPerformer.java:257)
at org.apache.iotdb.db.engine.compaction.execute.performer.impl.FastCompactionPerformer.perform(FastCompactionPerformer.java:137)
at org.apache.iotdb.db.engine.compaction.execute.task.CrossSpaceCompactionTask.doCompaction(CrossSpaceCompactionTask.java:160)
at org.apache.iotdb.db.engine.compaction.execute.task.AbstractCompactionTask.start(AbstractCompactionTask.java:80)
at org.apache.iotdb.db.engine.compaction.schedule.CompactionWorker.run(CompactionWorker.java:65)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ArrayIndexOutOfBoundsException: null
2023-05-29 09:09:54,880 [pool-23-IoTDB-Compaction-10] ERROR o.a.i.d.e.c.e.t.CrossSpaceCompactionTask:251 - root.iot-7 [Compaction] Meet errors in cross space compaction.
java.lang.RuntimeException: java.io.IOException: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException
at org.apache.iotdb.db.engine.compaction.execute.performer.impl.FastCompactionPerformer.perform(FastCompactionPerformer.java:154)
at org.apache.iotdb.db.engine.compaction.execute.task.CrossSpaceCompactionTask.doCompaction(CrossSpaceCompactionTask.java:160)
at org.apache.iotdb.db.engine.compaction.execute.task.AbstractCompactionTask.start(AbstractCompactionTask.java:80)
at org.apache.iotdb.db.engine.compaction.schedule.CompactionWorker.run(CompactionWorker.java:65)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException
at org.apache.iotdb.db.engine.compaction.execute.performer.impl.FastCompactionPerformer.compactNonAlignedSeries(FastCompactionPerformer.java:261)
at org.apache.iotdb.db.engine.compaction.execute.performer.impl.FastCompactionPerformer.perform(FastCompactionPerformer.java:137)
... 8 common frames omitted
Caused by: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.iotdb.db.engine.compaction.execute.performer.impl.FastCompactionPerformer.compactNonAlignedSeries(FastCompactionPerformer.java:257)
... 9 common frames omitted
Caused by: java.lang.ArrayIndexOutOfBoundsException: null

### What did you expect to see?

no error

### What did you see instead?

none

### Anything else?

none

### Are you willing to submit a PR?

- [X] I'm willing to submit a PR!

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginnen Sie bei FastCompactionPerformer.compactNonAlignedSeries, insbesondere bei den Zeilen 257-261, und verfolgen Sie den Fehler von SubCompactionTask durch CrossSpaceCompactionTask und AbstractCompactionTask. Reproduzieren Sie den gemeldeten Fehler nach Möglichkeit auf IoTDB v1.1.0 und ermitteln Sie die Quelle der ArrayIndexOutOfBoundsException. Als erledigt gilt die Aufgabe, wenn die Cross-Space-Kompaktierung ohne die Exception abgeschlossen wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
databases
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.