optiopay / kafka

Go driver for Kafka

Home Page:https://godoc.org/github.com/optiopay/kafka

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UknownTopic Or Partition

PragmaticCypher opened this issue · comments

Would it be possible to have this error report which topic/partition in the error?

proto/errors.go: ErrUnknownTopicOrPartition = &KafkaError{3, "unknown topic or partition"}

Not without drawback. All standard errors are defined in https://github.com/optiopay/kafka/blob/master/proto/errors.go#L11 and because of this you can compare them. If I would build custom error with topic/partition information, there would be no chance to compare it.

Where do you need it?