-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
get()
seems to be leaking OkHttp connections in 5.11
#3697
Comments
shawkins
added a commit
to shawkins/kubernetes-client
that referenced
this issue
Dec 28, 2021
This was referenced Dec 28, 2021
just revert the https://github.com/fabric8io/kubernetes-client/pull/3549 removed 4 line code(the finally clause), it's works ok OperationSupport.java
|
@walnut-tom : Could you please review #3699 ? |
no error |
manusa
pushed a commit
that referenced
this issue
Jan 3, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in #3694
Describe the bug
It seems that in some cases, when the
get()
method is called, the OkHttp responses are not closed properly. As a result, the application logs might be full of following messages:This happens for example when
MixedOperation.inNamespace(...).withName(...).get()
orNonNamespaceOperation.withName(...).get()
is called. The full stack where the response is not closed looks for example like this:Where the
io.strimzi.operator.common.operator.resource.AbstractResourceOperator
class is what callsget()
on line 109.This was not happening in 5.10.1.
For more details, see the discussion in #3694.
Fabric8 Kubernetes Client version
other (please specify in additional context)
Steps to reproduce
Following reproducer can be used to reproduce the issue also without Strimzi:
Just run it for few minutes with 5.11.0 or 5.11.1 and you should see the error.
Expected behavior
All responses are closed and no warnings about leaked connections are raised by OkHttp.
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.22.3@latest
Environment
Linux
Fabric8 Kubernetes Client Logs
No response
Additional context
Fabric8 versions impacted by this: 5.11.0 and 5.11.1. This relates to the discussion #3694
The text was updated successfully, but these errors were encountered: