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

clientv3/integration: test lease keepalive #4369

Closed
wants to merge 4 commits into from

Conversation

xiang90
Copy link
Contributor

@xiang90 xiang90 commented Feb 1, 2016

@gyuho
Copy link
Contributor

gyuho commented Feb 1, 2016

LGTM.

kresp := <-rc
if kresp.ID != resp.ID {
t.Errorf("ID = %x, want %x", kresp.ID, resp.ID)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

test the channel closes on Close()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure. will do.

@heyitsanthony
Copy link
Contributor

can this test the ctx cancel logic too?

@xiang90
Copy link
Contributor Author

xiang90 commented Feb 1, 2016

@heyitsanthony I wanted. However the keepAlive ctx is unimplemented right now. I plan to implement and then test it as a whole.

@heyitsanthony
Copy link
Contributor

ok, fair enough

@xiang90
Copy link
Contributor Author

xiang90 commented Feb 2, 2016

@heyitsanthony fixed a bunch of small issues. PTAL.

@@ -182,6 +187,10 @@ func (c *Client) retryConnection(oldConn *grpc.ClientConn, err error) (*grpc.Cli
// connection is established.
func dialEndpointList(c *Client) (*grpc.ClientConn, error) {
var err error
if len(c.Endpoints()) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

would it be better to put this in New instead of checking in the retrydialer every redial?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok will do.

@heyitsanthony
Copy link
Contributor

lgtm after fixing nits

@xiang90
Copy link
Contributor Author

xiang90 commented Feb 2, 2016

close in favor of #4382

@xiang90 xiang90 closed this Feb 2, 2016
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.

None yet

3 participants