You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Steven Fackler (Jira)" <ji...@apache.org> on 2021/02/18 00:39:00 UTC

[jira] [Created] (ARROW-11681) [Rust] IPC writers shouldn't unwrap in destructors

Steven Fackler created ARROW-11681:
--------------------------------------

             Summary: [Rust] IPC writers shouldn't unwrap in destructors
                 Key: ARROW-11681
                 URL: https://issues.apache.org/jira/browse/ARROW-11681
             Project: Apache Arrow
          Issue Type: Bug
            Reporter: Steven Fackler
            Assignee: Steven Fackler


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)