com.amazonaws.service.s3.model.AmazonS3Exception cannot be cast to com.amazonaws.AmazonClientException


i use BucketSink to sink file with s3a shema. fink version is 1.9.0
There is something wrong in my program, flink turn to failover strategy. But when flink try to do failover strategy, a classcast exception was throwout, and my program can not recover from failling.
What can cause the cast exception?
This is my exception stack
how can i do to avoid the exception and make my flink program recover from failling?