Skip to content

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

Open
jacobmarble wants to merge 1 commit into
masterfrom
connector-init-demote-broken-pipe
Open

connector-init: demote broken-pipe stdin writes to debug#3358
jacobmarble wants to merge 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
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.

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

1 participant