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

[GLib] GIOInputStream can return short reads #31085

Closed
asfimport opened this issue Feb 9, 2022 · 1 comment
Closed

[GLib] GIOInputStream can return short reads #31085

asfimport opened this issue Feb 9, 2022 · 1 comment

Comments

@asfimport
Copy link

The Read() methods in c_glib/arrow-glib/input-stream.cpp:GIOInputStream can return short when used with a GInputStream that can return short reads (such as a socket), e.g.

GInputStream *gis = g_unix_input_stream_new(socket_fd, FALSE);
GArrowGIOInputStream *is = garrow_gio_input_stream_new(gis);
GArrowRecordBatchStreamReader *stream_reader =
            garrow_record_batch_stream_reader_new(
                    GARROW_INPUT_STREAM(is), &gerr);

This causes failure in the RecordBatchReader.

I have a patch and will post a PR shortly.

Environment: All unix based platforms.
Reporter: Rob Saccoccio / @rsaccoccio
Assignee: Rob Saccoccio / @rsaccoccio

PRs and other links:

Note: This issue was originally created as ARROW-15626. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Kouhei Sutou / @kou:
Issue resolved by pull request 12380
#12380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant