tilt-dev / tilt-dev/tilt

Pods that don't produce any output for a while result in intermittent "unexpected EOF" errors in Tilt console

Open
#4,967 1 comment 5 reactions 0 assignees View on GitHub

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
  1. tilt up with a Pod that runs indefinitely but is mostly silent/quiet (e.g. echo "hello world"; sleep infinity;")
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.