Add InternalFailureException to the list of retriable errors (#132)
* Add InternalFailureException to the list of retriable errors
This commit is contained in:
parent
27055f2ace
commit
c75a9237b6
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue