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

single_host_multi_brokers system test fails on laptop

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.8.0
    • Component/s: core
    • Labels:
      None

      Description

      I got the following exception when running system_test/single_host_multi_brokers/bin/run-test.sh. This seems to only happen on laptop, not desktop.

      2012-07-24 00:22:51 cleaning up kafka server log/data dir
      2012-07-24 00:22:53 starting zookeeper
      2012-07-24 00:22:55 starting cluster
      2012-07-24 00:22:55 starting kafka server
      2012-07-24 00:22:55 -> kafka_pids[1]: 75282
      2012-07-24 00:22:55 starting kafka server
      2012-07-24 00:22:55 -> kafka_pids[2]: 75286
      2012-07-24 00:22:55 starting kafka server
      2012-07-24 00:22:55 -> kafka_pids[3]: 75291
      2012-07-24 00:22:57 creating topic [mytest] on [localhost:2181]
      creation failed because of org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /brokers/ids
      org.I0Itec.zkclient.exception.ZkNoNodeException: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /brokers/ids
      at org.I0Itec.zkclient.exception.ZkException.create(ZkException.java:47)
      at org.I0Itec.zkclient.ZkClient.retryUntilConnected(ZkClient.java:685)
      at org.I0Itec.zkclient.ZkClient.getChildren(ZkClient.java:413)
      at org.I0Itec.zkclient.ZkClient.getChildren(ZkClient.java:409)
      at kafka.utils.ZkUtils$.getChildren(ZkUtils.scala:363)
      at kafka.utils.ZkUtils$.getSortedBrokerList(ZkUtils.scala:80)
      at kafka.admin.CreateTopicCommand$.createTopic(CreateTopicCommand.scala:86)
      at kafka.admin.CreateTopicCommand$.main(CreateTopicCommand.scala:73)
      at kafka.admin.CreateTopicCommand.main(CreateTopicCommand.scala)
      Caused by: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /brokers/ids
      at org.apache.zookeeper.KeeperException.create(KeeperException.java:102)
      at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
      at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1249)
      at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1277)
      at org.I0Itec.zkclient.ZkConnection.getChildren(ZkConnection.java:99)
      at org.I0Itec.zkclient.ZkClient$2.call(ZkClient.java:416)
      at org.I0Itec.zkclient.ZkClient$2.call(ZkClient.java:413)
      at org.I0Itec.zkclient.ZkClient.retryUntilConnected(ZkClient.java:675)
      ... 7 more

        Attachments

        1. kafka-413-v1.patch
          1 kB
          John Fung

          Activity

            People

            • Assignee:
              jfung John Fung
              Reporter:
              junrao Jun Rao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: