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

Revisiting clientv3.New() connection model #6162

Closed
hongchaodeng opened this issue Aug 11, 2016 · 5 comments
Closed

Revisiting clientv3.New() connection model #6162

hongchaodeng opened this issue Aug 11, 2016 · 5 comments

Comments

@hongchaodeng
Copy link
Contributor

In v2 client New(), it just creates some http transports and connections happen when you make an api call. Hence it won't block on New().

In v3 client New(), it dials out to establish the grpc connection. It blocks and returns error if it failed to connect.

It would be ideal if we can support non-blocking clientv3.New() for some use cases.

@hongchaodeng
Copy link
Contributor Author

@timothysc
Copy link

This was the root of the UT failures when enabling v3client, but it also exposed suppositions on some of the k8s tests.
/cc @wojtek-t

@wojtek-t
Copy link
Contributor

Great catch - thanks for letting me know.

heyitsanthony added a commit to heyitsanthony/etcd that referenced this issue Aug 12, 2016
heyitsanthony added a commit to heyitsanthony/etcd that referenced this issue Aug 12, 2016
heyitsanthony added a commit to heyitsanthony/etcd that referenced this issue Aug 12, 2016
@timothysc
Copy link

@smarterclayton do we have any requirements on apiserver startup behavior blocking vs. non-blocking?

@smarterclayton
Copy link
Contributor

Right now we do polling to see if the etcd server is up before continuing, then we fail if it never responds in X seconds.

k8s-github-robot pushed a commit to kubernetes/kubernetes that referenced this issue Aug 19, 2016
…tests

Automatic merge from submit-queue

Move UTs that block on apiserver to integration tests. 

In validating etcd.v3client we had uncovered that a change in the behavior of the client etcd-io/etcd#6162 , caused a number of unit tests to fail.  These test failures were due to the fact that the unit tests were trying to standup a apiserver even though there was no etcd backend stood up.  

This PR simply shuffles those tests to integration tests, which is where they should be. 

/cc @kubernetes/sig-scalability @wojtek-t @hongchaodeng @xiang90
perotinus pushed a commit to kubernetes-retired/cluster-registry that referenced this issue Sep 2, 2017
…tests

Automatic merge from submit-queue

Move UTs that block on apiserver to integration tests. 

In validating etcd.v3client we had uncovered that a change in the behavior of the client etcd-io/etcd#6162 , caused a number of unit tests to fail.  These test failures were due to the fact that the unit tests were trying to standup a apiserver even though there was no etcd backend stood up.  

This PR simply shuffles those tests to integration tests, which is where they should be. 

/cc @kubernetes/sig-scalability @wojtek-t @hongchaodeng @xiang90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants