Skip to content

connector-init: demote broken-pipe stdin writes to debug - #3358

Merged
jacobmarble merged 1 commit into
masterfrom
connector-init-demote-broken-pipe
Aug 17, 2026
Merged

connector-init: demote broken-pipe stdin writes to debug#3358
jacobmarble merged 1 commit into
masterfrom
connector-init-demote-broken-pipe

Conversation

@jacobmarble

@jacobmarble jacobmarble commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Description:

flow-connector-init pipes runtime requests into the connector's stdin. When a connector dies, the next write fails with a broken pipe — there's no reader left — and we logged that at warn. It's noise: the write failed because the connector was already gone, and it sat in the task's ops logs beside the connector's real error at the same level.

Broken pipes now log at debug. Other i/o errors keep their warn and original wording. A connector is allowed to not read its stdin at all, so this was never treated as an error — the function's comment already said so; now the level agrees. The sibling message was demoted the same way in a1bb93b.

Closes #3354.

Workflow steps:

No user-facing change. One fewer misleading warn when reading ops logs for a failed task.

Documentation links affected:

None.

Notes for reviewers:

The issue asked to key on "the connector has already exited", but that isn't known at the write site — the exit future hasn't resolved, which is why we're still in the loop. BrokenPipe means the reader is gone either way.

A failed write to the connector's stdin is expected when the connector has
exited or simply isn't reading stdin, which the protocol allows. Logging it
at warn placed pure downstream noise beside the causal error in a task's ops
logs. Log a broken pipe at debug; any other i/o error stays a warn.

Closes #3354
@jacobmarble
jacobmarble requested a review from a team August 13, 2026 18:18
@jacobmarble
jacobmarble marked this pull request as ready for review August 13, 2026 18:18

@williamhbaker williamhbaker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jacobmarble
jacobmarble merged commit b4dc6b6 into master Aug 17, 2026
10 of 11 checks passed
@GregorShear GregorShear added pending:agent-api Merged, ships via Deploy agent-api, and not yet deployed pending:agent Merged, in the control-plane-agent image, and not yet rolled to flow-agent labels Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending:agent Merged, in the control-plane-agent image, and not yet rolled to flow-agent pending:agent-api Merged, ships via Deploy agent-api, and not yet deployed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

connector_init: demote 'i/o error writing to connector stdin' when the connector has already exited

3 participants