-
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
etcdserver: non-mutating requests pass through quotaKVServer when NOS… #13435
etcdserver: non-mutating requests pass through quotaKVServer when NOS… #13435
Conversation
50041f2
to
817e672
Compare
Just fixed the fmt.
|
server/storage/quota.go
Outdated
@@ -127,6 +127,10 @@ func NewBackendQuota(cfg config.ServerConfig, be backend.Backend, name string) Q | |||
} | |||
|
|||
func (b *BackendQuota) Available(v interface{}) bool { | |||
// if there are no mutating requests, it's safe to pass through | |||
if b.Cost(v) == 0 { |
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.
b.Cost(v)
is used twice at line 135? Can we assign it to a var?
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.
Yeah, good call out. Fixed in the latest commits.
817e672
to
9c6d579
Compare
@@ -32,6 +32,11 @@ See [code changes](https://github.com/etcd-io/etcd/compare/v3.5.0...v3.6.0). | |||
### etcd server | |||
|
|||
- Add [`etcd --log-format`](https://github.com/etcd-io/etcd/pull/13339) flag to support log format. | |||
- Fix [non mutating requests pass through quotaKVServer when NOSPACE](https://github.com/etcd-io/etcd/pull/13435) | |||
|
|||
### tools/benchmark |
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.
I was wondering why did you change this but looking at the related PR, seems like it was incorrectly added to 3.5 :)
lgtm Thanks @chaochn47
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.
Yeah, I made a mistake in the related PR Changelog and corrected it in this PR..
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.
:) that's fine and thanks for correcting it!
Looks like integration tests failed at
ref. https://github.com/etcd-io/etcd/runs/3991284667 Will take a look at the flaky tests. They are not related to the PR though. |
This is a backport of etcd-io#13435 and is part of the work for 3.4.20 etcd-io#14232. The original change had a second commit that modifies a changelog file. The 3.4 branch does not include any changelog file, so that part was not cherry-picked. Local Testing: - `make build` - `make test` Both succeed.
This is a backport of etcd-io#13435 and is part of the work for 3.4.20 etcd-io#14232. The original change had a second commit that modifies a changelog file. The 3.4 branch does not include any changelog file, so that part was not cherry-picked. Local Testing: - `make build` - `make test` Both succeed. Signed-off-by: Ramsés Morales <ramses@gmail.com>
This is a backport of etcd-io#13435 and is part of the work for 3.4.20 etcd-io#14232. The original change had a second commit that modifies a changelog file. The 3.4 branch does not include any changelog file, so that part was not cherry-picked. Local Testing: - `make build` - `make test` Both succeed. Signed-off-by: Ramsés Morales <ramses@gmail.com>
Fix #13429