Details
Description
When use IPv6 start the broker. The server.log output this error:
===========
[2016-05-25 15:45:56,120] WARN Error processing kafka.server:type=FetcherStats,name=RequestsPerSec,clientId=console-consumer-25184,brokerHost=fe80::92e2:baff:fe92:62f,brokerPort=3392 (com.yammer.metrics.reporting.JmxReporter)
javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
at javax.management.ObjectName.construct(ObjectName.java:618)
at javax.management.ObjectName.<init>(ObjectName.java:1382)
at com.yammer.metrics.reporting.JmxReporter.onMetricAdded(JmxReporter.java:395)
at com.yammer.metrics.core.MetricsRegistry.notifyMetricAdded(MetricsRegistry.java:516)
at com.yammer.metrics.core.MetricsRegistry.getOrAdd(MetricsRegistry.java:491)
at com.yammer.metrics.core.MetricsRegistry.newMeter(MetricsRegistry.java:240)
at kafka.metrics.KafkaMetricsGroup$class.newMeter(KafkaMetricsGroup.scala:80)
at kafka.server.FetcherStats.newMeter(AbstractFetcherThread.scala:264)
at kafka.server.FetcherStats.<init>(AbstractFetcherThread.scala:269)
at kafka.server.AbstractFetcherThread.<init>(AbstractFetcherThread.scala:55)
at kafka.consumer.ConsumerFetcherThread.<init>(ConsumerFetcherThread.scala:38)
..........
==============================
In the AbstractFetcherThread.scala line 264:
class FetcherStats(metricId: ClientIdAndBroker) extends KafkaMetricsGroup {
val tags = Map("clientId" -> metricId.clientId,
"brokerHost" -> metricId.brokerHost,
"brokerPort" -> metricId.brokerPort.toString)
When brokerHost is IPv6, the address has :, which can't use as ObjectName.
Attachments
Attachments
Issue Links
- is duplicated by
-
KAFKA-3913 Old consumer's metrics error when using IPv6
- Resolved
- links to