Hello, I am working on a AWS Managed Flink app whi...
# troubleshooting
s
Hello, I am working on a AWS Managed Flink app which has a full_restart once every day. I see from the docs that the full_restarts means
If 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
a
You should be able to inspect the failure from the exceptions in Flink Dashboard, It should also be present in the configured CW log stream as well
s
@Ahmed Hamdy thank you for responding. There was only one exception in the Dashboard, and that corresponds to the time the full restart happened.
Copy code
Caused 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 more
It looks like this error happened when taking a snapshot..
I also verified that the restart-strategy is "fixed-delay", with delay of 10s.
a
There 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 10s
If the restarts are infrequent as you mentioned then this should be insignificant anyways.
gratitude thank you 1
s
The problem is when a restart happens, the app's consumers start consuming a much higher load from its source Kinesis streams, and this causes backpressure. Once the backpressure was so high, it took several minutes to catch up.
is there a way we can configure the system to ignore checkpoint and not restart when an error happens?
d
As @Ahmed Hamdy mentioned, I would recommend migrating to the apache version of the connector flink-connector-aws-kinesis-firehose. This does require Flink 1.15+. https://nightlies.apache.org/flink/flink-docs-master/docs/connectors/datastream/firehose/
gratitude thank you 1