question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect log when exceptions occur in KafkaStateActor for method KafkaTopicOffsetGetter()

See original GitHub issue

When exceptions occur in KafkaStateActor for method KafkaTopicOffsetGetter()

You will get: [error] k.m.a.c.KafkaStateActor - KafkaTopicOffsetGetter exception | WARNING arguments left: 1

The code is in the class: https://github.com/yahoo/kafka-manager/blob/master/app/kafka/manager/actor/cluster/KafkaStateActor.scala

} catch {
        case e: Exception =>
          log.error("KafkaTopicOffsetGetter exception | ", e)
}

The log statement should have the exception as first argument: log.error(e, "KafkaTopicOffsetGetter exception | ")

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

2reactions
mrkjellqvistcommented, Aug 17, 2018

This is probably fixed in 1.3.3.21 (not yet a tagged released but the latest commit? in master.) See https://github.com/yahoo/kafka-manager/pull/532

0reactions
Gavin-Ancommented, Aug 16, 2018

@mrkjellqvist @DavidLiuXh I am also getting the same error. Can you please share the solution to it? I am running kafka-manager-1.3.3.18 on docker, my Kafka cluster is running SASL_SSL. Everything seems to be working ok except not getting offset and leadersize for partition of topic. I am seeing following errors on the log. Your help is much appreciated.

Regards

Gavin An

[error] k.m.a.c.KafkaStateActor - KafkaTopicOffsetGetter exception java.util.NoSuchElementException: key not found: PLAINTEXT at scala.collection.MapLike$class.default(MapLike.scala:228) ~[org.scala-lang.scala-library-2.11.12.jar:na] at scala.collection.AbstractMap.default(Map.scala:59) ~[org.scala-lang.scala-library-2.11.12.jar:na] at scala.collection.MapLike$class.apply(MapLike.scala:141) ~[org.scala-lang.scala-library-2.11.12.jar:na] at scala.collection.AbstractMap.apply(Map.scala:59) ~[org.scala-lang.scala-library-2.11.12.jar:na] at kafka.manager.actor.cluster.KafkaStateActor$KafkaTopicOffsetGetter$$anonfun$run$7$$anonfun$apply$10$$anonfun$apply$mcV$sp$14.apply(KafkaStateActor.scala:1456) ~[kafka-manager.kafka-manager-1.3.3.18-sans-externalized.jar:na] at kafka.manager.actor.cluster.KafkaStateActor$KafkaTopicOffsetGetter$$anonfun$run$7$$anonfun$apply$10$$anonfun$apply$mcV$sp$14.apply(KafkaStateActor.scala:1450) ~[kafka-manager.kafka-manager-1.3.3.18-sans-externalized.jar:na] at scala.collection.Iterator$class.foreach(Iterator.scala:891) ~[org.scala-lang.scala-library-2.11.12.jar:na] at scala.collection.AbstractIterator.foreach(Iterator.scala:1334) ~[org.scala-lang.scala-library-2.11.12.jar:na] at scala.collection.MapLike$DefaultKeySet.foreach(MapLike.scala:174) ~[org.scala-lang.scala-library-2.11.12.jar:na] at kafka.manager.actor.cluster.KafkaStateActor$KafkaTopicOffsetGetter$$anonfun$run$7$$anonfun$apply$10.apply$mcV$sp(KafkaStateActor.scala:1450) ~[kafka-manager.kafka-manager-1.3.3.18-sans-externalized.jar:na]

Read more comments on GitHub >

github_iconTop Results From Across the Web

app/kafka/manager/actor/cluster/KafkaStateActor.scala at master
case e: Exception => ; log.error(e, s"Failed to get group summary with admin client : $groupList") ; Unnecessary use of interpolated string. lines...
Read more >
org.apache.kafka.common.config.configexception: invalid url ...
Entering an invalid value for the "delete.retention.ms" parameter causes the Kafka Broker to crash. Log from the Kafka Broker: org.apache.kafka.common.config.
Read more >
Errors & Logging - Services - Winter CMS Documentation
When you first start using Winter CMS, error and exception handling ... When this feature is turned off, when there is a problem...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found