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

[Rust] IPC writers shouldn't unwrap in destructors

    XMLWordPrintableJSON

Details

    Description

      FileWriter and StreamWriter call `self.finish().unwrap()` in their `Drop` implementations if the write has not already been finished. However, a common reason for the write to not be finished is an earlier IO error on the underlying stream. In that case, the destructor will panic, which is not desired.

      Attachments

        Issue Links

          Activity

            People

              sfackler Steven Fackler
              sfackler Steven Fackler
              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 - 1h 10m
                  1h 10m