[
https://issues.apache.org/jira/browse/ARROW-13529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matthew Topol resolved ARROW-13529.
-----------------------------------
Fix Version/s: 6.0.0
Resolution: Fixed
Issue resolved by pull request 11270
[https://github.com/apache/arrow/pull/11270]
> 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
> Assignee: Matthew Topol
> Priority: Major
> Labels: pull-request-available
> Fix For: 6.0.0
>
> Attachments: main.go
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> [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)