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

Exec issues #832

Merged
merged 2 commits into from
Aug 2, 2017
Merged

Exec issues #832

merged 2 commits into from
Aug 2, 2017

Conversation

iocanel
Copy link
Member

@iocanel iocanel commented Aug 2, 2017

No description provided.

@oscerd
Copy link
Member

oscerd commented Aug 2, 2017

[merge]

return;

//If we already called onClosed() or onFailed() before, we need to abort.
if (explicitlyClosed.get() || closed.get() || !failed.compareAndSet(false, true) ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Calls to multiple atomics isn't in itself atomic... If you do need to do that, then consider AtomicReference to a holder object for the various states.

@fusesource-ci fusesource-ci merged commit 69c8b14 into fabric8io:master Aug 2, 2017
@ckanner
Copy link

ckanner commented Nov 7, 2017

When I run the ExecExample,it occurs the error io.fabric8.kubernetes.client.KubernetesClientException: Upgrade request required。I use kubernetes proxy, and set --disable-filter=true
I debug this problem, and find okhttpclient use HTTP 1.1 to exec watch.
Is there any solution?

@iocanel
Copy link
Member Author

iocanel commented Nov 7, 2017

@ckanner: I think that as of kubernetes/kubernetes#49534 the kubectl proxy should have no issues with upgrade requests. Never tried it myself though.

@ckanner
Copy link

ckanner commented Nov 8, 2017

@iocanel I follow the issue kubernetes/kubernetes#49534 and set --disable-filter=true, it doesn't solved. May be you can try it.

@iocanel
Copy link
Member Author

iocanel commented Nov 8, 2017

@ckanner: my understanding is that you also need a relatively new version of kubectl, no?

@ckanner
Copy link

ckanner commented Nov 8, 2017

@iocanel my kubectl version is v1.7.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants