Curt Hash created ARROW-13529:
---------------------------------

             Summary: Too many releases in IPC writer when writing slices
                 Key: ARROW-13529
                 URL: https://issues.apache.org/jira/browse/ARROW-13529
             Project: Apache Arrow
          Issue Type: Bug
          Components: Go
    Affects Versions: 5.0.0
            Reporter: Curt Hash
         Attachments: main.go

[https://github.com/apache/arrow/blob/master/go/arrow/ipc/writer.go#L441]

In the {{*arrow.StringType}} case, in the {{needTruncate}} code path (happens 
when writing a {{record.NewSlice}}), a reference to {{data.buffers[2]}} is 
appended to the payload body. It gets {{Release}}'d 
[here|https://github.com/apache/arrow/blob/122985841dcedd13bee5388cf5cb887f75cb4527/go/arrow/ipc/file_writer.go#L247]
 without any {{Retain}}.

The code for the {{FixedWidthType}} and {{BinaryType}} cases is similar.

The attached code reproduces the issue.



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

Reply via email to