fix the recoverable error logic to prevent crash
This commit is contained in:
parent
6502115563
commit
5301dfe963
1 changed files with 2 additions and 0 deletions
|
|
@ -81,7 +81,9 @@ func (p Pipeline) ProcessShard(ksis *kinesis.Kinesis, shardID string) {
|
|||
|
||||
if err != nil {
|
||||
if p.isRecoverableError(err) {
|
||||
l4g.Info("recoverable error, %s", err)
|
||||
consecutiveErrorAttempts++
|
||||
continue
|
||||
} else {
|
||||
l4g.Critical("GetRecords ERROR: %v\n", err)
|
||||
os.Exit(1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue