Shan P S
04/20/2024, 12:19 AMIf your application is not healthy, its Apache Flink job continually fails and restarts.However, the app is not restarting frequently, just once a day (not at the same time). What are the triggers for this? Is there any metric or error that can lead up to this? https://docs.aws.amazon.com/managed-flink/latest/java/troubleshooting-rt-restarts.html#troubleshooting-rt-restarts-causes
Ahmed Hamdy
04/20/2024, 12:24 AMShan P S
04/20/2024, 12:35 AMCaused by: java.lang.IllegalStateException: An error has occurred trying to flush the buffer synchronously.
at com.amazonaws.services.kinesisanalytics.flink.connectors.producer.FlinkKinesisFirehoseProducer.snapshotState(FlinkKinesisFirehoseProducer.java:187)
at org.apache.flink.streaming.util.functions.StreamingFunctionUtils.trySnapshotFunctionState(StreamingFunctionUtils.java:118)
at org.apache.flink.streaming.util.functions.StreamingFunctionUtils.snapshotFunctionState(StreamingFunctionUtils.java:99)
at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.snapshotState(AbstractUdfStreamOperator.java:87)
at org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.snapshotState(StreamOperatorStateHandler.java:222)
... 34 moreShan P S
04/20/2024, 12:36 AMShan P S
04/20/2024, 12:39 AMShan P S
04/20/2024, 12:50 AMAhmed Hamdy
04/20/2024, 12:51 AMThere was only one exception in the Dashboard, and that corresponds to the time the full restart happened.I guess that is your pointer for the issue, right?
the Firehose producer is a library and the error is thrown there.yeah, this library is not maintained by the community directly, you can open a ticket for the maintainer team. Btw, there is a Firehose sink maintained by the community if you would rather migrate.
I also verified that the restart-strategy is "fixed-delay", with delay of 10sIf the restarts are infrequent as you mentioned then this should be insignificant anyways.
Shan P S
04/20/2024, 12:57 AMShan P S
04/20/2024, 12:58 AMDanny Cranmer
04/22/2024, 9:37 AM