Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-3930

IPv6 address can't used as ObjectName

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.0.0, 0.9.0.1, 0.10.0.0
    • Fix Version/s: 0.10.1.0
    • Component/s: metrics
    • Labels:
      None

      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

          Issue Links

            Activity

              People

              • Assignee:
                rsivaram Rajini Sivaram
                Reporter:
                wateray wateray
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: