Skip to content

fix: improve statsd write error handling#540

Merged
KowalskiThomas merged 2 commits intomainfrom
kowalski/fix-un-deadify-error-handling
Apr 14, 2026
Merged

fix: improve statsd write error handling#540
KowalskiThomas merged 2 commits intomainfrom
kowalski/fix-un-deadify-error-handling

Conversation

@KowalskiThomas
Copy link
Copy Markdown
Contributor

What does this PR do?

This makes an error handling code path non dead. Previously, we would check the errno before getting into the block, making the second check on errno useless/redundant/dead.

@KowalskiThomas KowalskiThomas marked this pull request as ready for review April 13, 2026 14:19
Comment thread src/statsd.cc
@r1viollet
Copy link
Copy Markdown
Collaborator

Thanks for looking into this, how did you find this issue ?

@KowalskiThomas
Copy link
Copy Markdown
Contributor Author

how did you find this issue ?

Messing around with coding agents on plane wifi 😛

@r1viollet
Copy link
Copy Markdown
Collaborator

how did you find this issue ?

Messing around with coding agents on plane wifi 😛

Perhaps we will want to generalize this messing around process ^^, we can talk about this.

@KowalskiThomas KowalskiThomas changed the title fix: un-deadify error handling fix: improve statsd write error handling Apr 14, 2026
nsavoire
nsavoire previously approved these changes Apr 14, 2026
@KowalskiThomas KowalskiThomas force-pushed the kowalski/fix-un-deadify-error-handling branch from 8f5ecd2 to bd5e1f2 Compare April 14, 2026 18:22
@KowalskiThomas KowalskiThomas requested a review from nsavoire April 14, 2026 18:33
@KowalskiThomas
Copy link
Copy Markdown
Contributor Author

@nsavoire re-requested review since fixing CI and pushing the branch dismissed it 😭

Copy link
Copy Markdown
Collaborator

@nsavoire nsavoire left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes !

@KowalskiThomas KowalskiThomas merged commit 506ceae into main Apr 14, 2026
3 checks passed
@KowalskiThomas KowalskiThomas deleted the kowalski/fix-un-deadify-error-handling branch April 14, 2026 18:40
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.

3 participants