[
https://issues.apache.org/jira/browse/ARROW-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17659620#comment-17659620
]
Rok Mihevc commented on ARROW-2594:
-----------------------------------
This issue has been migrated to [issue
#18982|https://github.com/apache/arrow/issues/18982] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [Java] Vector reallocation does not properly clear reused buffers
> -----------------------------------------------------------------
>
> Key: ARROW-2594
> URL: https://issues.apache.org/jira/browse/ARROW-2594
> Project: Apache Arrow
> Issue Type: Bug
> Components: Java
> Reporter: Bryan Cutler
> Assignee: Bryan Cutler
> Priority: Critical
> Labels: pull-request-available
> Fix For: 0.10.0
>
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> When reallocating a vector buffer, it assumes that the first half of the new
> buffer was clean or populated from the previous and only zeros out the second
> half. This is not the case if the vector has released the buffer and the
> current capacity is 0 (empty). If the new buffer has values set, then they
> will cause bogus values when used in the vector.
> I came across this when looking into SPARK-23030, due to the comment here
> https://github.com/apache/spark/pull/21312#issuecomment-389035697
--
This message was sent by Atlassian Jira
(v8.20.10#820010)