Kafka
  1. Kafka
  2. KAFKA-1545

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.8.1.1
    • Fix Version/s: 0.9.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 created issue -
        Hide
        Guozhang Wang added a comment -

        Moving to 0.9

        Show
        Guozhang Wang added a comment - Moving to 0.9
        Guozhang Wang made changes -
        Field Original Value New Value
        Fix Version/s 0.9.0 [ 12323928 ]
        Fix Version/s 0.8.2 [ 12326167 ]
        Neha Narkhede made changes -
        Labels newbie
        Hide
        ASF GitHub Bot added a comment -

        GitHub user rekhajoshm opened a pull request:

        https://github.com/apache/kafka/pull/47

        KAFKA-1545: KafkaHealthcheck.register failure

        KAFKA-1545: java.net.InetAddress.getLocalHost in KafkaHealthcheck.register may fail on some irregular hostnames

        You can merge this pull request into a Git repository by running:

        $ git pull https://github.com/rekhajoshm/kafka KAFKA-1545

        Alternatively you can review and apply these changes as the patch at:

        https://github.com/apache/kafka/pull/47.patch

        To close this pull request, make a commit to your master/trunk branch
        with (at least) the following in the commit message:

        This closes #47


        commit d123f48f85604c765b464d6b9d5cee4b3ec0de25
        Author: Joshi <rekhajoshm@gmail.com>
        Date: 2015-02-22T23:21:55Z

        KAFKA-1621 : Standardize --messages option

        commit 262df13b91d86bee2c5fb937630c794830854947
        Author: Joshi <rekhajoshm@gmail.com>
        Date: 2015-02-22T23:54:43Z

        KAFKA-1545: KafkaHealthcheck.register failure


        Show
        ASF GitHub Bot added a comment - GitHub user rekhajoshm opened a pull request: https://github.com/apache/kafka/pull/47 KAFKA-1545 : KafkaHealthcheck.register failure KAFKA-1545 : java.net.InetAddress.getLocalHost in KafkaHealthcheck.register may fail on some irregular hostnames You can merge this pull request into a Git repository by running: $ git pull https://github.com/rekhajoshm/kafka KAFKA-1545 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/47.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #47 commit d123f48f85604c765b464d6b9d5cee4b3ec0de25 Author: Joshi <rekhajoshm@gmail.com> Date: 2015-02-22T23:21:55Z KAFKA-1621 : Standardize --messages option commit 262df13b91d86bee2c5fb937630c794830854947 Author: Joshi <rekhajoshm@gmail.com> Date: 2015-02-22T23:54:43Z KAFKA-1545 : KafkaHealthcheck.register failure
        Hide
        ASF GitHub Bot added a comment -

        Github user rekhajoshm closed the pull request at:

        https://github.com/apache/kafka/pull/47

        Show
        ASF GitHub Bot added a comment - Github user rekhajoshm closed the pull request at: https://github.com/apache/kafka/pull/47
        Hide
        ASF GitHub Bot added a comment -

        GitHub user rekhajoshm opened a pull request:

        https://github.com/apache/kafka/pull/48

        KAFKA-1545: KafkaHealthcheck.register failure

        KAFKA-1545: java.net.InetAddress.getLocalHost in KafkaHealthcheck.register may fail on some irregular hostnames

        You can merge this pull request into a Git repository by running:

        $ git pull https://github.com/rekhajoshm/kafka KAFKA-1545

        Alternatively you can review and apply these changes as the patch at:

        https://github.com/apache/kafka/pull/48.patch

        To close this pull request, make a commit to your master/trunk branch
        with (at least) the following in the commit message:

        This closes #48


        commit 3127b9058b19916657c234635437edf8a93123d4
        Author: Joshi <rekhajoshm@gmail.com>
        Date: 2015-02-23T00:05:28Z

        KAFKA-1545 : KafkaHealthcheck.register failure


        Show
        ASF GitHub Bot added a comment - GitHub user rekhajoshm opened a pull request: https://github.com/apache/kafka/pull/48 KAFKA-1545 : KafkaHealthcheck.register failure KAFKA-1545 : java.net.InetAddress.getLocalHost in KafkaHealthcheck.register may fail on some irregular hostnames You can merge this pull request into a Git repository by running: $ git pull https://github.com/rekhajoshm/kafka KAFKA-1545 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/48.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #48 commit 3127b9058b19916657c234635437edf8a93123d4 Author: Joshi <rekhajoshm@gmail.com> Date: 2015-02-23T00:05:28Z KAFKA-1545 : KafkaHealthcheck.register failure
        Rekha Joshi made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Affects Version/s 0.8.1.1 [ 12326539 ]
        Reviewer Guozhang Wang [ guozhang ]
        Hide
        Gwen Shapira added a comment -

        I don't see a patch...

        Guozhang Wang - you are both assignee and reviewer, you may want to reassign one of those

        Show
        Gwen Shapira added a comment - I don't see a patch... Guozhang Wang - you are both assignee and reviewer, you may want to reassign one of those
        Gwen Shapira made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Guozhang Wang made changes -
        Assignee Guozhang Wang [ guozhang ] Rekha Joshi [ rekhajoshm ]
        Hide
        Guozhang Wang added a comment -

        Reassigned to Rekha Joshi

        Show
        Guozhang Wang added a comment - Reassigned to Rekha Joshi
        Tony Stevenson made changes -
        Workflow no-reopen-closed, patch-avail [ 12876115 ] Apache Kafka Workflow [ 13052126 ]
        Tony Stevenson made changes -
        Workflow Apache Kafka Workflow [ 13052126 ] no-reopen-closed, patch-avail [ 13054273 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        220d 6h 3m 1 Rekha Joshi 23/Feb/15 00:03
        Patch Available Patch Available Open Open
        44d 1h 38m 1 Gwen Shapira 08/Apr/15 02:42

          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:

              Development