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

Tests: Check Watch response error not nil to avoid runtime panic. #14591

Merged
merged 1 commit into from
Oct 16, 2022

Conversation

halegreen
Copy link
Contributor

Check Watch response error not nil to avoid test suite runtime panic.
Fixes issue: #14259

Signed-off-by: Wang Xiaoxiao 1141195807@qq.com

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

@halegreen halegreen changed the title Check Watch response error not nil to avoid runtime panic. Tests: Check Watch response error not nil to avoid runtime panic. Oct 15, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 15, 2022

Codecov Report

Merging #14591 (2751ec6) into main (f97aac9) will decrease coverage by 0.20%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main   #14591      +/-   ##
==========================================
- Coverage   75.66%   75.46%   -0.21%     
==========================================
  Files         457      457              
  Lines       37290    37213      -77     
==========================================
- Hits        28215    28082     -133     
- Misses       7314     7361      +47     
- Partials     1761     1770       +9     
Flag Coverage Δ
all 75.46% <ø> (-0.21%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/etcdserver/api/v3lock/lock.go 61.53% <0.00%> (-8.47%) ⬇️
client/pkg/v3/testutil/leak.go 62.83% <0.00%> (-7.08%) ⬇️
client/v3/namespace/watch.go 87.87% <0.00%> (-6.07%) ⬇️
api/etcdserverpb/raft_internal_stringer.go 76.78% <0.00%> (-4.94%) ⬇️
server/proxy/grpcproxy/watch.go 92.48% <0.00%> (-4.05%) ⬇️
server/etcdserver/txn/util.go 75.47% <0.00%> (-3.78%) ⬇️
server/storage/mvcc/watcher.go 96.29% <0.00%> (-3.71%) ⬇️
server/etcdserver/api/rafthttp/msgappv2_codec.go 69.56% <0.00%> (-3.48%) ⬇️
server/etcdserver/api/v3rpc/util.go 70.96% <0.00%> (-3.23%) ⬇️
client/v3/leasing/txn.go 88.09% <0.00%> (-3.18%) ⬇️
... and 20 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ahrtr
Copy link
Member

ahrtr commented Oct 15, 2022

@ZoeShaw101 The change looks good to me. Please signoff the commit. git rebase HEAD~1 --signoff

Fixes issue: etcd-io#14259

Signed-off-by: 王霄霄 <1141195807@qq.com>
@halegreen
Copy link
Contributor Author

halegreen commented Oct 16, 2022

@ahrtr Thanks! signoff the commit done.

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

Thank you @ZoeShaw101

Could you backport this PR to both 3.5 and 3.4?

@ahrtr ahrtr merged commit bf6a1d7 into etcd-io:main Oct 16, 2022
halegreen added a commit to halegreen/etcd that referenced this pull request Oct 16, 2022
Signed-off-by: 王霄霄 <1141195807@qq.com>
halegreen added a commit to halegreen/etcd that referenced this pull request Oct 16, 2022
Signed-off-by: 王霄霄 1141195807@qq.com
@halegreen
Copy link
Contributor Author

@ahrtr backport this PR to both 3.5 and 3.4 is done, pls check , thanks ~

ahrtr added a commit that referenced this pull request Oct 16, 2022
halegreen added a commit to halegreen/etcd that referenced this pull request Oct 16, 2022
Signed-off-by: 王霄霄 1141195807@qq.com
Signed-off-by: 王霄霄 <1141195807@qq.com>
ahrtr added a commit that referenced this pull request Oct 16, 2022
tjungblu pushed a commit to tjungblu/etcd that referenced this pull request Jul 26, 2023
Signed-off-by: 王霄霄 <1141195807@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants