Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

12125: panic: zap.Logger is nil in Embed client #12131

Merged
merged 1 commit into from
Jul 13, 2020
Merged

Conversation

dissoupov
Copy link

Fix for: #12125

NewCtxClient is used with Embedded server. This constructor does not create Logger, which is used by other packages, which causes a panic in func New(s *etcdserver.EtcdServer) *clientv3.Client

The fix introduces a default no-op logger and allows to copy the logger from the Embed Server, if specified.

@gyuho gyuho merged commit 4c6881f into etcd-io:master Jul 13, 2020
Copy link
Member

@spzala spzala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should cherry-pick the fix to 3.4 and 3.3 /cc @gyuho
@dissoupov would you like to work on cherry-pick?, thanks!

@dissoupov
Copy link
Author

@spzala yes, the cherry-pick PR is being tested on 3.4, it's not applicable to 3.3 as Zap logger was not used yet.
I was hoping that https://github.com/etcd-io/etcd/pull/12129/files will be also merged to bring both to 3.4 and then Snapshot in Embedded will be working e2e.

@spzala
Copy link
Member

spzala commented Jul 14, 2020

@dissoupov thanks, just reviewed the other PR!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants