-
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
clientv3/integration: add more tests on balancer switch, inflight range #8841
Conversation
4c209a2
to
4de69ba
Compare
// the client can switch to other available eps | ||
cli.SetEndpoints(eps...) | ||
|
||
if stopPinFirst { |
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.
why this matters?
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.
If we stop pinned one first, balancer is expected to switch out of pinned address.
If we stop unpinned one, balancer won't do anything.
With these changes, now we can both cases.
} | ||
}() | ||
|
||
time.Sleep(500 * time.Millisecond) |
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.
why do we need to sleep there?
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.
Original tests were testing inflight range requests.
3c89a40
to
c021e26
Compare
96cd8ac
to
6328bc5
Compare
Test all possible cases of server shutdown with inflight range requests. Removed redundant tests in kv_test.go. Signed-off-by: Gyu-Ho Lee <[email protected]>
Merging this to test new gRPC. |
Test all possible cases of server shutdown with inflight range requests.
Removed redundant tests in kv_test.go.
c.f. #8711