-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KMinion v2.2.1 is segfaulting when serving /metrics
#177
Comments
Hey @hhromic , Could you share the configuration you are using? Are you able to provide a docker compose where this is reproducible? Thanks! |
Hey @weeco , thanks for the fast reply and sorry for not replying earlier. I will try to debug a local copy of kminion given on how easy is for me to reproduce the crash with our current Kafka clusters. The crash happens actually in Maybe a fix is due for |
Good news, I found the problem now. Confluent's Control Center has the (bad) habit of using a consumer group with an empty-string as name/ID. for _, group := range req.Groups {
berr := coordinators[group]
var ke *kerr.Error
switch {
case berr.err == nil:
brokerReq := brokerReqs[berr.b.meta.NodeID] // crash is here
if brokerReq == nil {
brokerReq = newReq()
brokerReqs[berr.b.meta.NodeID] = brokerReq
}
brokerReq.Groups = append(brokerReq.Groups, group)
case errors.As(berr.err, &ke):
kerrs[ke] = append(kerrs[ke], group)
default:
unkerrs = append(unkerrs, unkerr{berr.err, group})
}
} I can confirm that when I delete the empty-string named consumer group, |
@weeco upstream
So all is needed now should be for |
First of all, thank you very much for KMinion. It is truly a useful diagnostics tool!
I just noticed a new version of KMinion released (
v2.2.1
) and I went to test it to migrate our existingv2.2.0
deployment.Unfortunately, the new version of KMinion is segfaulting whenever a client requests its
/metrics
endpoint.I tested this with two different Confluent Kafka clusters running version
6.2.7
and get the same result.In one terminal, KMinion is started like this:
When the
/metrics
endpoint is requested in another terminal, KMinion crashes after few seconds with the below error:Error on the KMinion terminal:
Please let me know of any information you might need to help debugging this issue.
The text was updated successfully, but these errors were encountered: