Kinesis_consumer input plugin - fix repeating parser error (#9169)

This commit is contained in:
maxuntr 2021-05-11 17:16:58 -04:00 committed by GitHub
parent 8b9883e2ec
commit 741e3884e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -230,8 +230,8 @@ func (k *KinesisConsumer) connect(ac telegraf.Accumulator) error {
}
err := k.onMessage(k.acc, r)
if err != nil {
k.sem <- struct{}{}
return consumer.ScanStatus{Error: err}
<-k.sem
k.Log.Errorf("Scan parser error: %s", err.Error())
}
return consumer.ScanStatus{}