Hello, there We're trying to upgrade from Flink 1...
# troubleshooting
n
Hello, there We're trying to upgrade from Flink 1.16.0 to Flink 1.17.1 but are experiencing a lot of issues. 1. Running the exact same topology with the exact same Flink and cluster configurations: got errors we managed with the following tweak configs. 2. Tweak the config: a.
"taskmanager.memory.network.max": "1g"
See https://nightlies.apache.org/flink/flink-docs-master/release-notes/flink-1.17/#flink-30469httpsissuesapacheorgjirabrowseflink-30469 b.
"taskmanager.network.memory.max-overdraft-buffers-per-gate": "0"
c.
"pipeline.watermark-alignment.allow-unaligned-source-splits": "true"
(see https://issues.apache.org/jira/browse/FLINK-28853 otherwise the source task were not parallelized) d.
"state.backend.changelog.enabled": "true",  "state.backend.changelog.storage": "filesystem"
3. Upgrade from
FlinkKafkaConsumer
to
KafkaSource
(we couldn't do it in 1.16.0 due to https://github.com/apache/flink/pull/22416 and 1.16.3 isn't available through the EMR) 4. Different AWS cluster configurations (switching from
***.2xlarge
to
***.4xlarge
, some the job runs for about 1h (we got hourly computation, so it might make sense) and then fail with (see thread) Any insights on what could have changed between Flink 1.16 and 1.17 and could cause our topology x cluster to fail would be much appreciated! Thx!
Copy code
Caused by: java.lang.UnsupportedOperationException: Cannot rescale the given pointwise partitioner.
Did you change the partitioner to forward or rescale?
It may also help to add an explicit shuffle().
	at org.apache.flink.runtime.io.network.api.writer.SubtaskStateMapper$6.getOldSubtasks(SubtaskStateMapper.java:180)
	at org.apache.flink.runtime.io.network.api.writer.SubtaskStateMapper.lambda$getNewToOldSubtasksMapping$0(SubtaskStateMapper.java:202)
	at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180)
	at java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104)
	at java.base/java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:699)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:550)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:517)
	at org.apache.flink.runtime.checkpoint.RescaleMappings.of(RescaleMappings.java:138)
	at org.apache.flink.runtime.io.network.api.writer.SubtaskStateMapper.getNewToOldSubtasksMapping(SubtaskStateMapper.java:198)
	at org.apache.flink.runtime.checkpoint.TaskStateAssignment.getInputMapping(TaskStateAssignment.java:407)
	at org.apache.flink.runtime.checkpoint.StateAssignmentOperation.reDistributeInputChannelStates(StateAssignmentOperation.java:438)
	at org.apache.flink.runtime.checkpoint.StateAssignmentOperation.assignAttemptState(StateAssignmentOperation.java:204)
	at org.apache.flink.runtime.checkpoint.StateAssignmentOperation.assignStates(StateAssignmentOperation.java:144)
	at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.restoreLatestCheckpointedStateInternal(CheckpointCoordinator.java:1895)
	at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.restoreInitialCheckpointIfPresent(CheckpointCoordinator.java:1823)
	at org.apache.flink.runtime.scheduler.DefaultExecutionGraphFactory.createAndRestoreExecutionGraph(DefaultExecutionGraphFactory.java:194)
	at org.apache.flink.runtime.scheduler.adaptive.AdaptiveScheduler.createExecutionGraphAndRestoreState(AdaptiveScheduler.java:1182)
	at org.apache.flink.runtime.scheduler.adaptive.AdaptiveScheduler.lambda$createExecutionGraphAndRestoreStateAsync$25(AdaptiveScheduler.java:1172)
	at org.apache.flink.runtime.scheduler.adaptive.BackgroundTask.lambda$new$0(BackgroundTask.java:57)
	... 5 more