lua-resty-kafka icon indicating copy to clipboard operation
lua-resty-kafka copied to clipboard

kafka throws an exception

Open loujianpeng opened this issue 9 years ago • 6 comments
trafficstars

java.lang.IllegalArgumentException: A metric named 'MetricName [name=throttle-time, group=Produce, description=Tracking average throttle-time per client, tags={client-id=worker:26556}]' already exists, can't register another one

loujianpeng avatar Apr 25 '16 07:04 loujianpeng

My code always use the same Produce Object

loujianpeng avatar Apr 25 '16 07:04 loujianpeng

@loujianpeng Sorry, I don't have time to look inside the kafka for now. Does Kafka alway throws this exception, or only for sometimes?

doujiang24 avatar May 02 '16 09:05 doujiang24

@doujiang24 When Produce send message Kafka alway throws this exception, and message not lost.

loujianpeng avatar May 03 '16 06:05 loujianpeng

My co-worker ran the same issue. Remove the colon : character from your client-id.

hyperlink avatar Jun 27 '16 15:06 hyperlink

what do you mean. can u help me

loujianpeng avatar Sep 21 '16 09:09 loujianpeng

Kafka only allows ASCII alphanumerics (and . - _ chars as well) as the client-id

hyperlink avatar Sep 21 '16 13:09 hyperlink