Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.8.2.1
-
None
-
None
Description
The LogStartOffset gauge does "logSegments.head.baseOffset", which throws NoSuchElementException on an empty list, which can occur after a delete() of the log. This makes life harder for custom MetricsReporters, since they have to deal with .value() possibly throwing an exception.
Locally we're dealing with this by having Log.delete() also call removeMetric on all the gauges. That also has the benefit of not having a bunch of metrics floating around for logs that the broker is not actually handling.
Attachments
Attachments
Issue Links
- duplicates
-
KAFKA-3572 Metrics of topics still exist when they have been deleted
- Resolved
- relates to
-
KAFKA-2233 Log deletion is not removing log metrics
- Resolved