Avi Sanwal
03/14/2024, 11:56 AMMar 14, 2024 @ 08:23:02.200 ERROR Transient association error (association remains live) akka.remote.OversizedPayloadException: Discarding oversized payload sent to Actor[akka.tcp://flink@x.x.x.223:6123/user/rpc/jobmanager_2#1588267898]: max allowed size 10485760 bytes, actual size of encoded class org.apache.flink.runtime.rpc.messages.RemoteFencedMessage was 10488616 bytes.
Mar 14, 2024 @ 08:33:01.439 WARN Failed to trigger or complete checkpoint 59996 for job a242abdce643adeefd37e72828e573bd. (0 consecutive failed attempts so far) org.apache.flink.runtime.checkpoint.CheckpointException: Checkpoint expired before completing.
at org.apache.flink.runtime.checkpoint.CheckpointCoordinator$CheckpointCanceller.run(CheckpointCoordinator.java:2216)
...
Mar 14, 2024 @ 08:33:31.671 ERROR Transient association error (association remains live) akka.remote.OversizedPayloadException: Discarding oversized payload sent to Actor[akka.tcp://flink@x.x.x.78:6122/user/rpc/taskmanager_0#332505789]: max allowed size 10485760 bytes, actual size of encoded class org.apache.flink.runtime.rpc.messages.RemoteRpcInvocation was 10562839 bytes.
Mar 14, 2024 @ 08:34:11.877 ERROR Transient association error (association remains live) akka.remote.OversizedPayloadException: Discarding oversized payload sent to Actor[akka.tcp://flink@x.x.x.78:6122/user/rpc/taskmanager_0#332505789]: max allowed size 10485760 bytes, actual size of encoded class org.apache.flink.runtime.rpc.messages.RemoteRpcInvocation was 10562840 bytes.
... // More of akka.remote.OversizedPayloadExceptions
Mar 14, 2024 @ 08:39:53.228 WARN Discard registration from TaskExecutor flink-rtd-app-taskmanager-2-4 at (akka.tcp://flink@x.x.x.152:6122/user/rpc/taskmanager_0) because the framework did not recognize it -
Mar 14, 2024 @ 08:39:53.229 WARN Discard registration from TaskExecutor flink-rtd-app-taskmanager-2-1 at (akka.tcp://flink@x.x.x.149:6122/user/rpc/taskmanager_0) because the framework did not recognize it -
Mar 14, 2024 @ 08:39:53.229 WARN Discard registration from TaskExecutor flink-rtd-app-taskmanager-2-2 at (akka.tcp://flink@x.x.x.95:6122/user/rpc/taskmanager_0) because the framework did not recognize it -
Mar 14, 2024 @ 08:39:53.229 WARN Discard registration from TaskExecutor flink-rtd-app-taskmanager-2-5 at (akka.tcp://flink@x.x.x.78:6122/user/rpc/taskmanager_0) because the framework did not recognize it -
Mar 14, 2024 @ 08:39:53.231 ERROR Fatal error occurred in TaskExecutor akka.tcp://flink@x.x.x.152:6122/user/rpc/taskmanager_0. org.apache.flink.util.FlinkException: The TaskExecutor's registration at the ResourceManager akka.tcp://flink@x.x.x.223:6123/user/rpc/resourcemanager_0 has been rejected: Rejected TaskExecutor registration at the ResourceManager because: The ResourceManager does not recognize this TaskExecutor.
at org.apache.flink.runtime.taskexecutor.TaskExecutor$ResourceManagerRegistrationListener.onRegistrationRejection(TaskExecutor.java:2442)
...
Mar 14, 2024 @ 08:39:53.231 ERROR Fatal error occurred in TaskExecutor akka.tcp://flink@x.x.x.78:6122/user/rpc/taskmanager_0. org.apache.flink.util.FlinkException: The TaskExecutor's registration at the ResourceManager akka.tcp://flink@x.x.x.223:6123/user/rpc/resourcemanager_0 has been rejected: Rejected TaskExecutor registration at the ResourceManager because: The ResourceManager does not recognize this TaskExecutor.
...
Mar 14, 2024 @ 08:39:53.231 ERROR Fatal error occurred while executing the TaskManager. Shutting it down... org.apache.flink.util.FlinkException: The TaskExecutor's registration at the ResourceManager akka.tcp://flink@x.x.x.223:6123/user/rpc/resourcemanager_0 has been rejected: Rejected TaskExecutor registration at the ResourceManager because: The ResourceManager does not recognize this TaskExecutor.
at org.apache.flink.runtime.taskexecutor.TaskExecutor$ResourceManagerRegistrationListener.onRegistrationRejection(TaskExecutor.java:2442)
at org.apache.flink.runtime.taskexecutor.TaskExecutor$ResourceManagerRegistrationListener.onRegistrationRejection(TaskExecutor.java:2386)
Increasing the akka.framesize has helped restore the flink job, but this failure was seen in a relatively low load environment with few taskmanagers. Worried about high load environments.
And although the application is stateful, it is not very state heavy either. Usually, the checkpoint sizes are below 100 MB even in heavily loaded environments. Right before the incident, the checkpoint size was around 56 MB.
Before the failure, we did not observe any anomalies in the metrics.
Could you please help us identify why the framesize increased beyond 10 MB (the default)? Any pointers on how we can debug this would be greatly appreciated!