-
Notifications
You must be signed in to change notification settings - Fork 299
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: Exec hangs #1267
fix: Exec hangs #1267
Conversation
src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs
Outdated
Show resolved
Hide resolved
src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs
Outdated
Show resolved
Hide resolved
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #1267 +/- ##
=========================================
Coverage ? 69.88%
=========================================
Files ? 95
Lines ? 2700
Branches ? 0
=========================================
Hits ? 1887
Misses ? 813
Partials ? 0 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs
Outdated
Show resolved
Hide resolved
This looks reasonable to me. Thanks for the PR! |
It appears that the Event based approach has a race condition, particularly on slower systems. Due to this, I reverted to the previous logic. I also implemented a timeout for the Error condition so it will no longer wait forever. |
src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs
Outdated
Show resolved
Hide resolved
src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs
Outdated
Show resolved
Hide resolved
src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs
Outdated
Show resolved
Hide resolved
src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs
Outdated
Show resolved
Hide resolved
I think this approach closely resembles the Go client. |
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.
suggest use timespan instead of second
then LGTM
src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs
Outdated
Show resolved
Hide resolved
src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs
Outdated
Show resolved
Hide resolved
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.
/LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: IvanJosipovic, tg123 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 |
Fixes #1266