Tan Kim
04/27/2023, 1:05 AMTan Kim
04/27/2023, 1:07 AMjava.lang.ArrayIndexOutOfBoundsException: Index 5 out of bounds for length 5
at org.apache.flink.runtime.io.network.partition.PipelinedResultPartition.getCheckpointedSubpartition(PipelinedResultPartition.java:183)
at org.apache.flink.runtime.checkpoint.channel.ResultSubpartitionRecoveredStateHandler.getSubpartition(RecoveredChannelStateHandler.java:222)
at org.apache.flink.runtime.checkpoint.channel.ResultSubpartitionRecoveredStateHandler.lambda$calculateMapping$1(RecoveredChannelStateHandler.java:237)
at java.base/java.util.stream.IntPipeline$1$1.accept(Unknown Source)
at java.base/java.util.Spliterators$IntArraySpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.Spliterator$OfInt.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
at org.apache.flink.runtime.checkpoint.channel.ResultSubpartitionRecoveredStateHandler.calculateMapping(RecoveredChannelStateHandler.java:238)
at java.base/java.util.HashMap.computeIfAbsent(Unknown Source)
at org.apache.flink.runtime.checkpoint.channel.ResultSubpartitionRecoveredStateHandler.getMappedChannels(RecoveredChannelStateHandler.java:227)
at org.apache.flink.runtime.checkpoint.channel.ResultSubpartitionRecoveredStateHandler.getBuffer(RecoveredChannelStateHandler.java:182)
at org.apache.flink.runtime.checkpoint.channel.ResultSubpartitionRecoveredStateHandler.getBuffer(RecoveredChannelStateHandler.java:157)
at org.apache.flink.runtime.checkpoint.channel.ChannelStateChunkReader.readChunk(SequentialChannelStateReaderImpl.java:198)
at org.apache.flink.runtime.checkpoint.channel.SequentialChannelStateReaderImpl.readSequentially(SequentialChannelStateReaderImpl.java:107)
at org.apache.flink.runtime.checkpoint.channel.SequentialChannelStateReaderImpl.read(SequentialChannelStateReaderImpl.java:93)
at org.apache.flink.runtime.checkpoint.channel.SequentialChannelStateReaderImpl.readOutputData(SequentialChannelStateReaderImpl.java:79)
at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreGates(StreamTask.java:731)
at org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$1.call(StreamTaskActionExecutor.java:55)
at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreInternal(StreamTask.java:709)
at org.apache.flink.streaming.runtime.tasks.StreamTask.restore(StreamTask.java:675)
at org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:952)
at org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:921)
at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:745)
at org.apache.flink.runtime.taskmanager.Task.run(Task.java:562)
at java.base/java.lang.Thread.run(Unknown Source)Gyula Fóra
04/27/2023, 11:07 AMGyula Fóra
04/27/2023, 11:07 AMTan Kim
04/27/2023, 11:47 AMSo the error seems to happen when scaling down the job?Yes, when the parallelism scaled down.
Does the same error also happen if for the same checkpoint you manually change the entire job parallelism?I’ve not been changed it manually from that checkpoint. Why is that needed? Is there any difference between those?
Gyula Fóra
04/27/2023, 11:49 AMGyula Fóra
04/27/2023, 11:49 AMGyula Fóra
04/27/2023, 11:50 AMGyula Fóra
04/27/2023, 11:50 AMTan Kim
04/27/2023, 11:51 AMGyula Fóra
04/27/2023, 11:52 AMGyula Fóra
04/27/2023, 11:52 AMTan Kim
04/27/2023, 11:52 AMGyula Fóra
04/27/2023, 11:54 AMGyula Fóra
04/27/2023, 11:54 AMTan Kim
04/27/2023, 11:54 AMok, so the bug may be related to those components. We generally use this with aligned checkpointsThat’s why you asked if I’ve tried restoring from a checkpoint manually.
Tan Kim
04/28/2023, 2:01 AM