Pods that don't produce any output for a while result in intermittent "unexpected EOF" errors in Tilt console
Open
Nobody has claimed this yet.
bug
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 413
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 6
Description
Expected Behavior
- Tilt silently re-establishes log connection without emitting an error
Current Behavior
- If a Pod doesn't log for a while, presumably due to no I/O and the connection being idle, it gets closed and the following error emitted:
Error streaming web-7f9b8b65f4-wt97k logs: unexpected EOF
Steps to Reproduce
tilt upwith a Pod that runs indefinitely but is mostly silent/quiet (e.g.echo "hello world"; sleep infinity;")- Wait a while 😴
Context
We re-establish connection fine, I think it's just the connection being closed due to being idle.
This is case we handle in various ways (hence it re-establishing connection fine), we might just need to treat this error as expected and not log it (or only do it at Debug level?)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Reproduce the issue with a mostly silent Kubernetes Pod and trace the log-streaming path when the idle connection returns an unexpected EOF. Done means the connection is re-established without an error-level console message, with relevant tests passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- devops, observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100