-
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.5] api: fix duplicate gateway url issue #16490
Conversation
Run `scripts/genproto.sh --skip-protodoc` and checkout server/wal/walpb/record.pb.go because we still use go.etcd.io/etcd/raft/v3 instead of go.etcd.io/raft/v3. Before ``` ➜ etcd git:(release-3.5) etcdctl put foo bar OK ➜ etcd git:(release-3.5) etcdctl get -w json foo {"header":{"cluster_id":14841639068965178418,"member_id":10276657743932975437,"revision":2,"raft_term":2},"kvs":[{"key":"Zm9v","create_revision":2,"mod_revision":2,"version":1,"value":"YmFy"}],"count":1} ➜ etcd git:(release-3.5) etcdctl compact 2 compacted revision 2 ➜ etcd git:(release-3.5) http_proxy= curl -L http://127.0.0.1:2379/v3/maintenance/hashkv -X POST -d '{"revsion":2}' Not Found ``` After ```bash ➜ etcd git:(bp-16464) http_proxy= curl -L http://127.0.0.1:2379/v3/maintenance/hashkv -X POST -d '{"revsion":2}' {"header":{"cluster_id":"14841639068965178418","member_id":"10276657743932975437","revision":"2","raft_term":"3"},"hash":3305255506,"compact_revision":"2"}% ``` Signed-off-by: Wei Fu <fuweid89@gmail.com>
Could you also add at least the cases for hash and hashkv from #16489? |
Added. I also increase the timeout for grpcproxy testcase. No idea why it took so long. |
Signed-off-by: Benjamin Wang <wachao@vmware.com> Signed-off-by: Wei Fu <fuweid89@gmail.com>
Signed-off-by: Wei Fu <fuweid89@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @fuweid
Please also add a changelog item for 3.5. thx |
Sure. Will file pr after merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Thanks @fuweid
Signed-off-by: Wei Fu <fuweid89@gmail.com>
Thanks @ahrtr @jmhbnz for review. The changelog is here https://github.com/etcd-io/etcd/pull/16503/files ping @serathius the change looks good to you? |
Signed-off-by: Wei Fu <fuweid89@gmail.com>
CHANGELOG: add #16490 item in CHANGELOG-3.5.md
Signed-off-by: Wei Fu <fuweid89@gmail.com>
Run
scripts/genproto.sh --skip-protodoc
and checkout server/wal/walpb/record.pb.go because we still use go.etcd.io/etcd/raft/v3 instead of go.etcd.io/raft/v3.Before
After
Backport #16464
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.