Kafka
  1. Kafka
  2. KAFKA-1271

controller logs exceptions during ZK session expiration

    Details

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

      Description

      Saw the following issues when there is ZK session expiration in the controller.

      1.
      ERROR Error handling event ZkEvent[Children of
      /admin/delete_topics changed sent to
      kafka.controller.PartitionStateMachine$DeleteTopicsListener@39abdac9]
      (org.I0Itec.zkclient.ZkEventThread)
      java.lang.NullPointerException
      at
      scala.collection.JavaConversions$JListWrapper.iterator(JavaConversions.scala:524)
      at scala.collection.IterableLike$class.foreach(IterableLike.scala:79)
      at
      scala.collection.JavaConversions$JListWrapper.foreach(JavaConversions.scala:521)
      at
      scala.collection.TraversableOnce$class.foldLeft(TraversableOnce.scala:176)
      at
      scala.collection.JavaConversions$JListWrapper.foldLeft(JavaConversions.scala:521)
      at
      scala.collection.TraversableOnce$class.$div$colon(TraversableOnce.scala:139)
      at
      scala.collection.JavaConversions$JListWrapper.$div$colon(JavaConversions.scala:521)
      at scala.collection.generic.Addable$class.$plus$plus(Addable.scala:54)
      at scala.collection.immutable.Set$EmptySet$.$plus$plus(Set.scala:47)
      at scala.collection.TraversableOnce$class.toSet(TraversableOnce.scala:436)
      at
      scala.collection.JavaConversions$JListWrapper.toSet(JavaConversions.scala:521)
      at
      kafka.controller.PartitionStateMachine$DeleteTopicsListener$$anonfun$handleChildChange$2.apply$mcV$sp(PartitionStateMachine.scala:448)
      at
      kafka.controller.PartitionStateMachine$DeleteTopicsListener$$anonfun$handleChildChange$2.apply(PartitionStateMachine.scala:445)
      at
      kafka.controller.PartitionStateMachine$DeleteTopicsListener$$anonfun$handleChildChange$2.apply(PartitionStateMachine.scala:445)
      at kafka.utils.Utils$.inLock(Utils.scala:538)
      at
      kafka.controller.PartitionStateMachine$DeleteTopicsListener.handleChildChange(PartitionStateMachine.scala:445)
      at org.I0Itec.zkclient.ZkClient$7.run(ZkClient.java:570)
      at org.I0Itec.zkclient.ZkEventThread.run(ZkEventThread.java:71)

      2. IllegalStateException due to "Kafka scheduler has not been started".

        Issue Links

          Activity

          Jun Rao created issue -
          Jun Rao made changes -
          Field Original Value New Value
          Link This issue duplicates KAFKA-1272 [ KAFKA-1272 ]
          Jun Rao made changes -
          Attachment KAFKA-1271.patch [ 12629794 ]
          Hide
          Jun Rao added a comment -

          Created reviewboard https://reviews.apache.org/r/18273/
          against branch origin/trunk

          Show
          Jun Rao added a comment - Created reviewboard https://reviews.apache.org/r/18273/ against branch origin/trunk
          Joe Stein made changes -
          Fix Version/s 0.8.1 [ 12322960 ]
          Hide
          Jun Rao added a comment -

          Thanks for the review. Double committed to trunk and 0.8.1.

          Show
          Jun Rao added a comment - Thanks for the review. Double committed to trunk and 0.8.1.
          Jun Rao made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Jun Rao made changes -
          Link This issue duplicates KAFKA-1270 [ KAFKA-1270 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          1d 15h 21m 1 Jun Rao 20/Feb/14 17:52

            People

            • Assignee:
              Jun Rao
              Reporter:
              Jun Rao
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development