Add InternalFailureException to the list of retriable errors (#132)

* Add InternalFailureException to the list of retriable errors
This commit is contained in:
jonandrewj 2021-02-25 15:54:48 -07:00 committed by GitHub
parent 27055f2ace
commit c75a9237b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -234,6 +234,7 @@ func (c *Consumer) ScanShard(ctx context.Context, shardID string, fn ScanFunc) e
var retriableErrors = map[string]struct{}{ var retriableErrors = map[string]struct{}{
kinesis.ErrCodeExpiredIteratorException: struct{}{}, kinesis.ErrCodeExpiredIteratorException: struct{}{},
kinesis.ErrCodeProvisionedThroughputExceededException: struct{}{}, kinesis.ErrCodeProvisionedThroughputExceededException: struct{}{},
kinesis.ErrCodeInternalFailureException: struct{}{},
} }
func isShardClosed(nextShardIterator, currentShardIterator *string) bool { func isShardClosed(nextShardIterator, currentShardIterator *string) bool {