Kafka
  1. Kafka
  2. KAFKA-1545

java.net.InetAddress.getLocalHost in KafkaHealthcheck.register may fail on some irregular hostnames

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Not A Problem
    • Affects Version/s: 0.8.1.1
    • Fix Version/s: 0.10.0.0
    • Component/s: None
    • Labels:

      Description

      For example:

      kafka.server.LogOffsetTest > testGetOffsetsForUnknownTopic FAILED
      java.net.UnknownHostException: guwang-mn2: guwang-mn2: nodename nor servname provided, or not known
      at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
      at kafka.server.KafkaHealthcheck.register(KafkaHealthcheck.scala:59)
      at kafka.server.KafkaHealthcheck.startup(KafkaHealthcheck.scala:45)
      at kafka.server.KafkaServer.startup(KafkaServer.scala:121)
      at kafka.utils.TestUtils$.createServer(TestUtils.scala:130)
      at kafka.server.LogOffsetTest.setUp(LogOffsetTest.scala:53)

      Caused by:
      java.net.UnknownHostException: guwang-mn2: nodename nor servname provided, or not known
      at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
      at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
      at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
      at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
      ... 5 more

        Activity

        Guozhang Wang made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Not A Problem [ 8 ]
        Tony Stevenson made changes -
        Workflow Apache Kafka Workflow [ 13052126 ] no-reopen-closed, patch-avail [ 13054273 ]
        Tony Stevenson made changes -
        Workflow no-reopen-closed, patch-avail [ 12876115 ] Apache Kafka Workflow [ 13052126 ]
        Guozhang Wang made changes -
        Assignee Guozhang Wang [ guozhang ] Rekha Joshi [ rekhajoshm ]
        Gwen Shapira made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Rekha Joshi made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Affects Version/s 0.8.1.1 [ 12326539 ]
        Reviewer Guozhang Wang [ guozhang ]
        Neha Narkhede made changes -
        Labels newbie
        Guozhang Wang made changes -
        Field Original Value New Value
        Fix Version/s 0.9.0 [ 12323928 ]
        Fix Version/s 0.8.2 [ 12326167 ]
        Guozhang Wang created issue -

          People

          • Assignee:
            Rekha Joshi
            Reporter:
            Guozhang Wang
            Reviewer:
            Guozhang Wang
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development