Hi Team, We are using Flink 1.16.1 to run a CPU-in...
# troubleshooting
s
Hi Team, We are using Flink 1.16.1 to run a CPU-intensive job. We are observing a weird behaviour, where in case of the job restart, Tasks of a particular Single Operator of the Job take 20mins to 30 minutes to come to RUNNING from the INITIALIZING state. We observe this behaviour when the ingestion is heavy, however, we are not able to understand why ingestion volume dictates the Task State transition, which should be mostly governed by the framework. We have confirmed that it is not a communication issue from TM to JM, the transition is not getting successful at the TMs only. However, the puzzle is why only for the task responsible for ingesting data? Any insights around the same shall be helpful?
b
Hi Saurabh, flink operator’s open() method will be executed during the INITIALIZING stage. Does your problematic operator contain some heavy logic like connecting to a database in its open() method? Also, you can try to get the thread dump of the operator to see which method blocks the operator.
s
We are not doing any heavy operations in the Open method, just creating the S3 Rest Client. We also have checked via logs that open function is complete and exits. Also, we have confirmed from the thread dumps that the processElement function also gets executed during the call _runWithSystemExitMonitoring_(finalInvokable::restore). However, the next state transition to Running does not happen.