...on the JM pod the log says ```2024-03-25 21:18:...
# troubleshooting
m
...on the JM pod the log says
Copy code
2024-03-25 21:18:02,404 INFO  org.apache.flink.runtime.resourcemanager.active.ActiveResourceManager [] - Requesting new worker with resource spec WorkerResourceSpec {cpuCores=1.0, taskHeapSize=537.600mb (563714445 bytes), taskOffHeapSize=0 bytes, networkMemSize=158.720mb (166429984 bytes), managedMemSize=634.880mb (665719939 bytes), numSlots=1}, current pending count: 1.
2024-03-25 21:18:02,413 INFO  org.apache.flink.runtime.externalresource.ExternalResourceUtils [] - Enabled external resources: []
2024-03-25 21:18:02,601 INFO  org.apache.flink.client.deployment.application.executors.EmbeddedExecutor [] - Job aac9fd300b7e27fdcc8a3070f29ba700 was recovered successfully.
2024-03-25 21:18:02,604 INFO  org.apache.flink.configuration.Configuration                 [] - Config uses fallback configuration key 'kubernetes.service-account' instead of key 'kubernetes.taskmanager.service-account'
2024-03-25 21:18:02,605 INFO  org.apache.flink.runtime.entrypoint.ClusterEntrypoint        [] - Shutting KubernetesApplicationClusterEntrypoint down with application status UNKNOWN. Diagnostics Cluster entrypoint has been closed externally..
2024-03-25 21:18:02,607 INFO  org.apache.flink.runtime.blob.BlobServer                     [] - Stopped BLOB server at 0.0.0.0:6124
2024-03-25 21:18:03,707 INFO  org.apache.pekko.remote.RemoteActorRefProvider$RemotingTerminator [] - Shutting down remote daemon.
2024-03-25 21:18:03,710 INFO  org.apache.pekko.remote.RemoteActorRefProvider$RemotingTerminator [] - Remote daemon shut down; proceeding with flushing remote transports.
2024-03-25 21:18:03,710 INFO  org.apache.pekko.actor.CoordinatedShutdown                   [] - Running CoordinatedShutdown with reason [ActorSystemTerminateReason]
2024-03-25 21:18:03,716 INFO  org.apache.pekko.remote.RemoteActorRefProvider$RemotingTerminator [] - Shutting down remote daemon.
2024-03-25 21:18:03,716 INFO  org.apache.pekko.remote.RemoteActorRefProvider$RemotingTerminator [] - Remote daemon shut down; proceeding with flushing remote transports.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.netty.util.internal.ByteBufferUtil (file:/tmp/flink-rpc-akka1e0f1d1a-8925-48e5-8c46-98b2eb007aab.jar) to method java.nio.DirectByteBuffer.cleaner()
WARNING: Please consider reporting this to the maintainers of org.jboss.netty.util.internal.ByteBufferUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2024-03-25 21:18:03,818 INFO  org.apache.pekko.remote.RemoteActorRefProvider$RemotingTerminator [] - Remoting shut down.
2024-03-25 21:18:03,818 INFO  org.apache.pekko.remote.RemoteActorRefProvider$RemotingTerminator [] - Remoting shut down.
So it looks to me that it just suddenly starts to shut down in the middle of the deployment (
Shutting down with status UNKNOWN
). Any ideas why?
Mystery solved. Apparently, something changed in how either Flink the native operator handle user application exits (
System.exit()
in Java). On the old default operator and flink 1.16 everything was working, but with Flink 1.18/1.7.0+ native operator the job manager was terminating right after starting. So turns out our main() had System.exit() at the end of the function and before it was not affecting flink and now it does with the current defaults. My hunch is it has something to do with https://nightlies.apache.org/flink/flink-docs-release-1.18/docs/deployment/config/#cluster-intercept-user-system-exit setting