-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
[3.4.20] Panic probably due to nil log object #14402
Comments
It may have a relationship with PR https://github.com/etcd-io/etcd/pull/11616/files |
@kkkkun Please feel free to deliver a PR for this. thx. |
@ahrtr I would like to take a look at the issue, but I'm new to the project and haven't managed to reproduce the bug. |
In v3.5 it is assumed that the logger should not be nil, however it is still a case in v3.4. The PR targeted to v3.5 was backported to 3.4 and that's why it's possible to get panic on nil logger in 3.4. This commit fixed this issue. Fixes etcd-io#14402
I've digged a bit into git history. However, for It will be enough just to add a couple of checks whether the Logger is nil. The fix should go for The PR is there. However, I haven't had a chance to test it since I don't know how to reproduce the bug. |
In v3.5 it is assumed that the logger should not be nil, however it is still a case in v3.4. The PR targeted to v3.5 was backported to 3.4 and that's why it's possible to get panic on nil logger in 3.4. This commit fixed this issue. Fixes etcd-io#14402 Signed-off-by: Vladimir Sokolov <[email protected]>
We easily reproduce the problem by deploying an IBM Cloud Kubernetes Service or Red Hat OpenShift on IBM Cloud cluster. However, you wouldn't be able to hack in your own etcd version to such clusters. My hope is that you could recreate by deploying etcd with your own Kubernetes cluster. |
We installed an on-premise multiple control-plane nodes k8s cluster. I think it should be easy to reproduce by installing a k8s cluster via kubeadm. In my case, when you are trying to run |
Issues: 1. etcd-io#14402 fixed in 3.4 only; 2. etcd-io#14382 fixed in both 3.5 and main. Signed-off-by: Benjamin Wang <[email protected]>
Resolved by #14420 |
Based on the feedback from @JohnJAS, this issue can't be reproduced in 3.4.19, instead it can only be reproduced on 3.4.20.
It looks like the lg is
nil
.Thanks both @JohnJAS and @rtheis.
The text was updated successfully, but these errors were encountered: