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.
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.