Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-15626

[GLib] GIOInputStream can return short reads

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.0.0, 7.0.0
    • 8.0.0
    • GLib
    • All unix based platforms.

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              rsaccoccio Rob Saccoccio
              rsaccoccio Rob Saccoccio
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m