Skip to content
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

Clientv3 prevent nil pointer #16198

Merged
merged 1 commit into from
Jul 12, 2023
Merged

Clientv3 prevent nil pointer #16198

merged 1 commit into from
Jul 12, 2023

Conversation

vianamjr
Copy link
Contributor

@vianamjr vianamjr commented Jul 8, 2023

Related issue: #13400

Also add some tests for this specific case!

@@ -0,0 +1,51 @@
// Copyright 2016 The etcd Authors
Copy link
Member

@fuweid fuweid Jul 10, 2023

Choose a reason for hiding this comment

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

s/2016/2023

},
}

for _, test := range tests {
Copy link
Member

Choose a reason for hiding this comment

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

please consider to use test := test in Line 45. Just in case that new test var will shadow the old one, when we enable parallel mode.

Copy link
Member

@ahrtr ahrtr Jul 10, 2023

Choose a reason for hiding this comment

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

This comment applies to lots of other test cases as well.

@ahrtr
Copy link
Member

ahrtr commented Jul 10, 2023

thx @vianamjr . Please resolve the review comments from @fuweid , and also squash the commits.

@vianamjr vianamjr changed the title Clientv3 precent nil pointer Clientv3 prevent nil pointer Jul 10, 2023
Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

thx @vianamjr

Copy link
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks for tidying this up @vianamjr 👍🏻

@vianamjr
Copy link
Contributor Author

Is there something else that I need to do?

@ahrtr ahrtr merged commit 5216eea into etcd-io:main Jul 12, 2023
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants