[ https://issues.apache.org/jira/browse/KAFKA-2101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Brooks updated KAFKA-2101: ------------------------------ Assignee: Tim Brooks Status: Patch Available (was: Open) > Metric metadata-age is reset on a failed update > ----------------------------------------------- > > Key: KAFKA-2101 > URL: https://issues.apache.org/jira/browse/KAFKA-2101 > Project: Kafka > Issue Type: Bug > Reporter: Tim Brooks > Assignee: Tim Brooks > Attachments: KAFKA-2101.patch > > > In org.apache.kafka.clients.Metadata there is a lastUpdate() method that > returns the time the metadata was lasted updated. This is only called by > metadata-age metric. > However the lastRefreshMs is updated on a failed update (when > MetadataResponse has not valid nodes). This is confusing since the metric's > name suggests that it is a true reflection of the age of the current > metadata. But the age might be reset by a failed update. > Additionally, lastRefreshMs is not reset on a failed update due to no node > being available. This seems slightly inconsistent, since one failure > condition resets the metrics, but another one does not. Especially since both > failure conditions do trigger the backoff (for the next attempt). > I have not implemented a patch yet, because I am unsure what expected > behavior is. -- This message was sent by Atlassian JIRA (v6.3.4#6332)