Skip to content

Commit

Permalink
Retry infinitely on expired shard iterator error
Browse files Browse the repository at this point in the history
  • Loading branch information
adatzer committed Nov 6, 2024
1 parent 9b8b911 commit c4b233c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shard_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ mainloop:
return
}
iterator = newIterator
// should retry after expired iterator is renewed successfully
shouldRetry = true

// retry infinitely after expired iterator is renewed successfully
continue mainloop
}

if shouldRetry && retryCount < maxErrorRetries {
Expand Down

0 comments on commit c4b233c

Please sign in to comment.