Hi all, After updating our application from flink...
# troubleshooting
s
Hi all, After updating our application from flink 17 and java 11 to flink 18.1 and java 17. We are seeing that the job is failing after sometime and not able to recover by itself. We need to restart it manually. Can anyone please us in identifying the root cause of this.
Copy code
org.apache.flink.util.FlinkException: Fatal error occurred while executing the TaskManager. Shutting it down...
org.apache.flink.util.FlinkException: The TaskExecutor's registration at the ResourceManager pekko.tcp://flink@100.126.178.138: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:2450) ~[flink-dist-1.18.1.jar:1.18.1]
	at org.apache.flink.runtime.taskexecutor.TaskExecutor$ResourceManagerRegistrationListener.onRegistrationRejection(TaskExecutor.java:2394) ~[flink-dist-1.18.1.jar:1.18.1]
	at org.apache.flink.runtime.taskexecutor.TaskExecutorToResourceManagerConnection.onRegistrationRejection(TaskExecutorToResourceManagerConnection.java:109) ~[flink-dist-1.18.1.jar:1.18.1]
	at org.apache.flink.runtime.taskexecutor.TaskExecutorToResourceManagerConnection.onRegistrationRejection(TaskExecutorToResourceManagerConnection.java:40) ~[flink-dist-1.18.1.jar:1.18.1]
	at org.apache.flink.runtime.registration.RegisteredRpcConnection.lambda$createNewRegistration$0(RegisteredRpcConnection.java:269) ~[flink-dist-1.18.1.jar:1.18.1]
	at java.util.concurrent.CompletableFuture.uniWhenComplete(Unknown Source) ~[?:?]
	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(Unknown Source) ~[?:?]
	at java.util.concurrent.CompletableFuture$Completion.run(Unknown Source) ~[?:?]
	at org.apache.flink.runtime.rpc.pekko.PekkoRpcActor.lambda$handleRunAsync$4(PekkoRpcActor.java:451) ~[flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.flink.runtime.concurrent.ClassLoadingUtils.runWithContextClassLoader(ClassLoadingUtils.java:68) ~[flink-dist-1.18.1.jar:1.18.1]
	at org.apache.flink.runtime.rpc.pekko.PekkoRpcActor.handleRunAsync(PekkoRpcActor.java:451) ~[flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.flink.runtime.rpc.pekko.PekkoRpcActor.handleRpcMessage(PekkoRpcActor.java:218) ~[flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.flink.runtime.rpc.pekko.PekkoRpcActor.handleMessage(PekkoRpcActor.java:168) ~[flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at scala.PartialFunction.applyOrElse(PartialFunction.scala:127) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at scala.PartialFunction.applyOrElse$(PartialFunction.scala:126) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:175) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:176) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:176) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) [flink-rpc-akka092b1bf3-60ea-4f3b-9abd-e8065ee0d60b.jar:1.18.1]
	at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:?]
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) [?:?]
	at java.util.concurrent.ForkJoinPool.scan(Unknown Source) [?:?]
	at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:?]
	at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:?]
t
The error indicates that the TaskExecutor's registration with the ResourceManager is being rejected due to unrecognized TaskExecutor. To resolve this, check for configuration consistency, network connectivity, version compatibility, and review ResourceManager logs. Ensure all components are correctly updated and configurations, especially those related to cluster setup and TaskExecutor settings, are consistent. If necessary, perform a full cluster restart and consult the Flink upgrade documentation for any specific steps related to the version upgrade.