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

Support specifying MaxBytes in range request #16300

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

linxiulei
Copy link

fixes: #14809

Please also refer to previously closed PR

@fuweid
Copy link
Member

fuweid commented Jul 25, 2023

Added label stage/tracked based on the discussion #16279 (comment)

@wenjiaswe
Copy link
Contributor

/lgtm

@linxiulei
Copy link
Author

failed test seems flaky to me

2023-09-15T22:55:59.8952040Z �[0m�[1m�[0;31mFAIL: (code:1):
2023-09-15T22:55:59.8952744Z   % (cd tests && 'env' 'ETCD_VERIFY=all' 'go' 'test' '-v' 'go.etcd.io/etcd/tests/v3/common' '--tags=e2e' '-timeout=30m')
2023-09-15T22:55:59.8966051Z �[0m�[1m�[0;31mERROR: Tests for following packages failed:
2023-09-15T22:55:59.8966484Z    go.etcd.io/etcd/tests/v3/common
2023-09-15T22:55:59.8967661Z     logger.go:130: 2023-09-15T22:55:59.866Z	INFO	closed test cluster.
2023-09-15T22:55:59.8968105Z --- PASS: TestWatch (14.96s)
2023-09-15T22:55:59.8968549Z     --- PASS: TestWatch/NoTLS (0.45s)
2023-09-15T22:55:59.8969026Z     --- PASS: TestWatch/PeerTLS (3.62s)
2023-09-15T22:55:59.8969499Z     --- PASS: TestWatch/PeerAutoTLS (2.31s)
2023-09-15T22:55:59.8969960Z     --- PASS: TestWatch/ClientTLS (0.56s)
2023-09-15T22:55:59.8970449Z     --- PASS: TestWatch/ClientAutoTLS (1.28s)
2023-09-15T22:55:59.8970976Z     --- PASS: TestWatch/MinorityLastVersion (2.10s)
2023-09-15T22:55:59.8971523Z     --- PASS: TestWatch/QuorumLastVersion (4.64s)
2023-09-15T22:55:59.8971930Z FAIL
2023-09-15T22:55:59.8972236Z FAIL	go.etcd.io/etcd/tests/v3/common	916.793s
2023-09-15T22:55:59.8972528Z FAIL
2023-09-15T22:55:59.8991966Z �[0m�[1m�[0;31mFAIL: 'e2e' FAILED at Fri Sep 15 22:55:59 UTC 2023
2023-09-15T22:55:59.8996161Z �[0mmake: *** [Makefile:53: test-e2e-release] Error 255
2023-09-15T22:55:59.9046479Z ##[error]Process completed with exit code 2.

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.

Raised a couple of minor comment on copy/pastes typos, and a major comment in #14809 (comment)

@@ -296,6 +300,8 @@ func OpPut(key, val string, opts ...OpOption) Op {
panic("unexpected filter in put")
case ret.createdNotify:
panic("unexpected createdNotify in put")
case ret.maxBytes != 0:
panic("unexpected maxBytes in delete")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
panic("unexpected maxBytes in delete")
panic("unexpected maxBytes in put")

@@ -323,6 +329,8 @@ func opWatch(key string, opts ...OpOption) Op {
panic("unexpected mod revision filter in watch")
case ret.minCreateRev != 0, ret.maxCreateRev != 0:
panic("unexpected create revision filter in watch")
case ret.maxBytes != 0:
panic("unexpected maxBytes in delete")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
panic("unexpected maxBytes in delete")
panic("unexpected maxBytes in watch")

@jmhbnz
Copy link
Member

jmhbnz commented Jun 6, 2024

Discussed during sig-etcd triage meeting, @linxiulei should we close this for now given a KEP is required before we could progress it (as discussed in linked issue).

@serathius
Copy link
Member

This is superseded with https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/3157-watch-list/README.md, on the other hand etcd should think about our own WatchList :P

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.

Support paginating by key-value size
7 participants