apache / openwhisk-package-kafka

Apache OpenWhisk package for communicating with Kafka or Message Hub
https://openwhisk.apache.org/
Apache License 2.0
33 stars 43 forks source link

Reset consumer restart counter after 24 hours #337

Closed dubee closed 5 years ago

dubee commented 5 years ago

Due to a bug in the Kafka client being used, a consumer may restart incrementally over time, resulting in the consumer restart counter continually increasing. A restart counter that gradually increases over time may create false alarms if the value is being used for health monitoring purposes. Given such a scenario, the changes here with reset the restart counter when a consumer restarts after a 24 hour period.

Related client bug: https://github.com/apache/incubator-openwhisk-package-kafka/blob/master/provider/thedoctor.py#L67.