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

[Rust] IPC writers shouldn't implicitly finish on drop

    XMLWordPrintableJSON

    Details

      Description

      The Rust IPC writer types have a destructor that automatically writes the footer if necessary. This is not ideal, though, since it can hide errors. For example, if a web server is streaming data to a client in the Arrow IPC format and it encounters an internal error trying to generate the next batch, the outbound stream will appear valid to the client as the footer will automatically be written out but some amount of data will actually be missing. If the footer was not automatically written, the client would properly detect the truncation.

      For reference, the C++ implementation does not attempt to write the footer implicitly on drop.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sfackler Steven Fackler
                Reporter:
                sfackler Steven Fackler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 1.5h
                  1.5h