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

[bugfix] Restart k8s log stream on urllib3 failure #26760

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

OrenLederman
Copy link
Contributor

Summary & Motivation

Should fix the bug described here - #26626

The execute_k8s_job method uses watch.stream() to stream logs from k8s pods. When the client enters a stale state, we should call stream again. See the bug report for more information.

How I Tested These Changes

I was unable to fix a repeatable way for recreating the issue and there are not existing tests for execute_k8s_job.
I deployed a similar fix to our dev and prod environments, and the problem has not appear yet. At the very least I can say that it didn't degrade the stability of this method.

Changelog

Insert changelog entry or delete this section.

@OrenLederman OrenLederman changed the title [bugfix[ Restart k8s log stream on urllib3 failure [bugfix] Restart k8s log stream on urllib3 failure Dec 30, 2024
@garethbrickman garethbrickman linked an issue Dec 30, 2024 that may be closed by this pull request
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.

execute_k8s_job does not handle watch client stale state
1 participant