Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update error variant IoError to include the underlying I/O error #4723

Closed
wants to merge 1 commit into from

Conversation

alexandreyc
Copy link
Contributor

@alexandreyc alexandreyc commented Aug 22, 2023

Which issue does this PR close?

Does not close any open issue.

Rationale for this change

I need to handle some kind of I/O errors (notably broken pipe errors) specifically and the current IoError variant does not permit it because it does not expose the underlying std::io::Error.

What changes are included in this PR?

  • Add std::io::Error field to IoError variant
  • Update conversion traits
  • Update usage of IoError within the IPC module (the only place where it's used)

I'm not 100% sure about the new semantics of errors in the IPC module so feel to correct me.

Are there any user-facing changes?

Yes. Callers that handle IoError separately will need to update their patterns to include the new field.

@github-actions github-actions bot added arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate labels Aug 22, 2023
@alexandreyc alexandreyc marked this pull request as draft August 23, 2023 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant