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
fix remotecommand stream blocked forever problems. #96837
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Welcome @adamzhoul! |
Hi @adamzhoul. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
@adamzhoul: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @yliaog |
/ok-to-test |
thanks for the pr. please add a test to verify the fix. |
/test pull-kubernetes-e2e-kind |
/retest |
5 similar comments
/retest |
/retest |
/retest |
/retest |
/retest |
hi @yliaog a test is added. please take some time to review. by the way, the "pull-kubernetes-e2e-gce-ubuntu-containerd" check is not successful. do you have any thoughts? didn't see any pass recently( almost a day ) by the way. thanks |
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.
looks pull-kubernetes-e2e-gce-ubuntu-containerd has successful runs lately
staging/src/k8s.io/client-go/tools/remotecommand/remotecommand_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/client-go/tools/remotecommand/remotecommand_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/client-go/tools/remotecommand/remotecommand_test.go
Outdated
Show resolved
Hide resolved
thanks for the pr |
thanks for the review and suggestions. they are very helpful. |
/assign @caesarxuchao |
hi lavalamp. /assign @lavalamp |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adamzhoul, lavalamp The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
hi @yliaog sorry to trouble you. I use git rebase to squash commits, which creates a new commit. maybe I need a new /lgtm label, do you mind? thanks |
/lgtm |
What type of PR is this?
/kind bug
What this PR does / why we need it:
function blocked forever while it should exit
the bug is:
why copyStdout return, but still have a lot of packets unconsumed?
check the code:
Check the code above:
p.remoteStdout
may have problems, so the function return.But
p.Stdout
still have dataSo, we need to discard output data, to close the connection. Because it's finished.
Which issue(s) this PR fixes:
Fixes # #96339
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: