Incorrect log when exceptions occur in KafkaStateActor for method KafkaTopicOffsetGetter()
See original GitHub issueWhen 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:
- Created 6 years ago
- Reactions:3
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
@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]