-
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
fix #4988: ensuring the previous response is closed #4990
Conversation
We keep hitting this issue again and again. I'm not sure if reference tracking is the way to go, but I do think that we need to mitigate this with something more permanent and scalable. |
The current fix seems to stall the tests at some point, I'm stopping the CI workflow jobs now, but they've been running for > 5 hours OK, I just saw that Rohan retriggered them after the previous iteration was cancelled after running for more than 6 hours. |
I've restarted these a few times. But keep seeing failures. |
Right while all current cases are now covered (interceptors, retry, token refresh requests, etc.) we may hit this again if the logic is moved or there's still the possibility for users to obtain exec, log streams, start informers, and not close them before gc is performed - okhttp will warn about this and ultimately close the connection based upon their reference tracking, I'm not entirely sure what the behavior of the other clients is. Other than our own reference tracking the options are:
|
Kudos, SonarCloud Quality Gate passed! |
Description
Fix #4988
The prior location of the retry code did not require explicit closure because it was on top of consuming the the whole auto-closed response. Now that it's been moved, we have to account for the closure before issuing the retry.
@manusa @rohanKanojia should we put in reference tracking cleanup as a fail safe?
Type of change
test, version modification, documentation, etc.)
Checklist