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

Move consistent_index forward when executing alarmList operation #14419

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Sep 2, 2022

Fix #14382

The alarm list is the only exception that doesn't move consistent_index
forward. The reproduction steps are as simple as,

etcd --snapshot-count=5 &
for i in {1..6}; do etcdctl  alarm list; done
kill -9 <etcd_pid>
etcd

Signed-off-by: Benjamin Wang wachao@vmware.com

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

@ahrtr
Copy link
Member Author

ahrtr commented Sep 2, 2022

cc @spzala @serathius @ptabor

@ahrtr
Copy link
Member Author

ahrtr commented Sep 2, 2022

Follow up #13854

@ahrtr ahrtr force-pushed the alarm_list_ci branch 2 times, most recently from c2ed9ec to ed0841f Compare September 5, 2022 02:04
The alarm list is the only exception that doesn't move consistent_index
forward. The reproduction steps are as simple as,

```
etcd --snapshot-count=5 &
for i in {1..6}; do etcdctl  alarm list; done
kill -9 <etcd_pid>
etcd
```

Signed-off-by: Benjamin Wang <wachao@vmware.com>
@codecov-commenter
Copy link

Codecov Report

Merging #14419 (cc84033) into main (4d57eb8) will decrease coverage by 0.14%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main   #14419      +/-   ##
==========================================
- Coverage   75.36%   75.22%   -0.15%     
==========================================
  Files         457      457              
  Lines       37183    37182       -1     
==========================================
- Hits        28024    27971      -53     
- Misses       7398     7434      +36     
- Partials     1761     1777      +16     
Flag Coverage Δ
all 75.22% <100.00%> (-0.15%) ⬇️

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

Impacted Files Coverage Δ
server/etcdserver/server.go 84.94% <100.00%> (-0.32%) ⬇️
client/pkg/v3/fileutil/lock_linux.go 72.22% <0.00%> (-8.34%) ⬇️
raft/rafttest/node.go 95.00% <0.00%> (-5.00%) ⬇️
server/storage/wal/file_pipeline.go 90.69% <0.00%> (-4.66%) ⬇️
client/v3/concurrency/session.go 88.63% <0.00%> (-4.55%) ⬇️
server/proxy/grpcproxy/watch.go 92.48% <0.00%> (-4.05%) ⬇️
server/etcdserver/api/rafthttp/msgappv2_codec.go 71.30% <0.00%> (-1.74%) ⬇️
client/pkg/v3/transport/listener_tls.go 50.81% <0.00%> (-1.63%) ⬇️
server/lease/leasehttp/http.go 64.23% <0.00%> (-1.46%) ⬇️
server/storage/mvcc/watchable_store.go 88.40% <0.00%> (-1.45%) ⬇️
... and 12 more

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

@ahrtr ahrtr merged commit 3dc5348 into etcd-io:main Sep 5, 2022
ahrtr added a commit to ahrtr/etcd that referenced this pull request Sep 6, 2022
Cherry pick etcd-io#14419 to 3.5.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/etcd that referenced this pull request Oct 7, 2022
Cherry pick etcd-io#14419 to 3.5.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
tjungblu pushed a commit to tjungblu/etcd that referenced this pull request Jul 26, 2023
Cherry pick etcd-io#14419 to 3.5.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
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.

ETCD fails to start after performing alarm list operation and then power off/on
3 participants