> On May 11, 2015, 8:25 p.m., Jun Rao wrote: > > core/src/main/scala/kafka/controller/KafkaController.scala, lines 1116-1120 > > <https://reviews.apache.org/r/34050/diff/1/?file=955526#file955526line1116> > > > > We register two StateListeners on the same zkclient instance in the > > broker. If we can't establish a new ZK session, both listeners will be > > called. However, we only need to exit in one of the listners. So, we can > > just do the logging and exit in handleSessionEstablishedmentError() in > > KafkaHealthcheck and add a comment in the listener in KafkaController that > > the actual logic is done in the other listener. > > > > Ditto to the two listeners in the consumer.
Is this issue addressed? - Jun ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/34050/#review83278 ----------------------------------------------------------- On May 11, 2015, 8:53 p.m., Parth Brahmbhatt wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/34050/ > ----------------------------------------------------------- > > (Updated May 11, 2015, 8:53 p.m.) > > > Review request for kafka. > > > Bugs: KAFKA-2169 > https://issues.apache.org/jira/browse/KAFKA-2169 > > > Repository: kafka > > > Description > ------- > > System.exit instead of throwing RuntimeException when zokeeper session > establishment fails. > > > Removing the unnecessary @throws. > > > Diffs > ----- > > build.gradle fef515b3b2276b1f861e7cc2e33e74c3ce5e405b > core/src/main/scala/kafka/consumer/ZookeeperConsumerConnector.scala > aa8d9404a3e78a365df06404b79d0d8f694b4bd6 > core/src/main/scala/kafka/consumer/ZookeeperTopicEventWatcher.scala > 38f4ec0bd1b388cc8fc04b38bbb2e7aaa1c3f43b > core/src/main/scala/kafka/controller/KafkaController.scala > a6351163f5b6f080d6fa50bcc3533d445fcbc067 > core/src/main/scala/kafka/server/KafkaHealthcheck.scala > 861b7f644941f88ce04a4e95f6b28d18bf1db16d > > Diff: https://reviews.apache.org/r/34050/diff/ > > > Testing > ------- > > > Thanks, > > Parth Brahmbhatt > >