kafkajs icon indicating copy to clipboard operation
kafkajs copied to clipboard

Include topic & partition in UNKNOWN_TOPIC_OR_PARTITION error

Open Nevon opened this issue 6 years ago • 6 comments

Currently, the unknown topic or partition error doesn't display which topic or partition has caused the failure. The log entry looks something like this:

{	
  broker: "kafka-host:9094",
  clientId: "tink-transaction-mapper",
  correlationId: 1385,
  error: "This server does not host this topic-partition",
  level: "ERROR",
  logger: "kafkajs",
  message: "[Connection] Response Metadata(key: 3, version: 2)",
  size: 1180,
  timestamp: "2018-09-17T07:37:39.265Z"
}

It would be useful to include the topic and the partition on the error and in the log entry.

Nevon avatar Sep 17 '18 07:09 Nevon

I might take this.

theliuk avatar Feb 20 '20 16:02 theliuk

Has this issue been resolved yet? Everyone give me a solution for this issue...

ghost avatar May 27 '20 09:05 ghost

I am picking this issue. Fork created at https://github.com/sujayneglur123/kafkajs

sujay-neglur avatar Jun 08 '20 14:06 sujay-neglur

👍 to see this resolved, this error message is not very helpful without this information.

mgirard772 avatar Jul 15 '20 17:07 mgirard772

looking into it.

dhananjaysa92 avatar Oct 27 '22 18:10 dhananjaysa92

has this been planned to resolve?

atiquefiroz avatar Aug 18 '23 14:08 atiquefiroz