allegro / kafka-offset-monitor-graphite

Graphite reporter for Kafka Offset Monitor.
Apache License 2.0
44 stars 21 forks source link

Cache with expiring cache #1

Closed adamdubiel closed 9 years ago

adamdubiel commented 9 years ago

There is a bug that will prevent reporter from reporting metrics. After cache expires, listener tries to remove registered gauges. Unfortunately, it tries to remove wrong key. This results in exception next time gauge with same name is registered.

This might happen if reporter hasn't been called for T > cache-expiry.