chore: add info logs in sleep case for kinesis backoff errors

Signed-off-by: Shiva Pentakota <spentakota@vmware.com>
This commit is contained in:
Shiva Pentakota 2023-03-22 12:22:26 -07:00
parent bce4dd3f42
commit a7c063b99c

View file

@ -182,10 +182,12 @@ func (sc *PollingShardConsumer) getRecords() error {
continue
}
if err == localTPSExceededError {
log.Infof("localTPSExceededError so sleep for a second")
sc.waitASecond(sc.currTime)
continue
}
if err == maxBytesExceededError {
log.Infof("maxBytesExceededError so sleep for %+v seconds", coolDownPeriod)
time.Sleep(time.Duration(coolDownPeriod) * time.Second)
continue
}