You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Neha Narkhede (JIRA)" <ji...@apache.org> on 2015/06/01 04:26:17 UTC
[jira] [Updated] (KAFKA-2233) Log deletion is not removing log
metrics
[ https://issues.apache.org/jira/browse/KAFKA-2233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Neha Narkhede updated KAFKA-2233:
---------------------------------
Labels: newbie (was: )
> Log deletion is not removing log metrics
> ----------------------------------------
>
> Key: KAFKA-2233
> URL: https://issues.apache.org/jira/browse/KAFKA-2233
> Project: Kafka
> Issue Type: Bug
> Components: log
> Affects Versions: 0.8.2.1
> Reporter: Stevo Slavic
> Assignee: Jay Kreps
> Priority: Minor
> Labels: newbie
>
> Topic deletion does not remove associated metrics. Any configured kafka metric reporter that gets triggered after a topic is deleted, when polling for log metrics for such deleted logs it will throw something like:
> {noformat}
> java.util.NoSuchElementException
> at java.util.concurrent.ConcurrentSkipListMap$Iter.advance(ConcurrentSkipListMap.java:2299)
> at java.util.concurrent.ConcurrentSkipListMap$ValueIterator.next(ConcurrentSkipListMap.java:2326)
> at scala.collection.convert.Wrappers$JIteratorWrapper.next(Wrappers.scala:43)
> at scala.collection.IterableLike$class.head(IterableLike.scala:107)
> at scala.collection.AbstractIterable.head(Iterable.scala:54)
> at kafka.log.Log.logStartOffset(Log.scala:502)
> at kafka.log.Log$$anon$2.value(Log.scala:86)
> at kafka.log.Log$$anon$2.value(Log.scala:85)
> {noformat}
> since on log deletion, {{Log}} segments collection get cleared, so logSegments {{Iterable}} has no (next) elements.
> Known workaround is to restart broker - as metric registry is in memory, not persisted, on restart it will be recreated with metrics for existing/non-deleted topics only.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)