Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-402: avoid empty buffers #232

Closed
wants to merge 3 commits into from

Conversation

julienledem
Copy link
Member

I'm not sure what's wrong with the accounting of empty buffers.
This seems to fix the issue. Feel free to use it to get unblocked.
allocator.getEmpty() is special and doesn't get accounted since it does not use memory.
@jacques-n: any insight?

@wesm
Copy link
Member

wesm commented Dec 9, 2016

Would be good to have a direct unit test for this, but I'll make sure it gets triggered by the integration tests, and then fixed by this patch.

@julienledem
Copy link
Member Author

@wesm I found the actual bug.
I have updated the test to find it.
The problem was allocator.getEmpty() returns a special buffer that doesn't do ref counting.
This is why the test didn't find the bug.
I changed to a different empty buffer that finds the bug and fixed it.

@wesm
Copy link
Member

wesm commented Dec 9, 2016

Oh, great. Will merge once the build is green -- I'll see if I can get a green integration test build in ARROW-394 once that's rebased

@asfgit asfgit closed this in 8995c92 Dec 9, 2016
@julienledem julienledem deleted the ARROW-402 branch April 25, 2017 18:32
wesm added a commit to wesm/arrow that referenced this pull request Sep 2, 2018
Author: Wes McKinney <wes.mckinney@twosigma.com>

Closes apache#232 from wesm/remove-libparquet_thrift and squashes the following commits:

d72546b [Wes McKinney] Remove parquet/thrift subdirectory and separate parquet_thrift library component
wesm added a commit to wesm/arrow that referenced this pull request Sep 4, 2018
Author: Wes McKinney <wes.mckinney@twosigma.com>

Closes apache#232 from wesm/remove-libparquet_thrift and squashes the following commits:

d72546b [Wes McKinney] Remove parquet/thrift subdirectory and separate parquet_thrift library component

Change-Id: I3922cf10aab607e8db5ddabba888a38763ff59f7
wesm added a commit to wesm/arrow that referenced this pull request Sep 6, 2018
Author: Wes McKinney <wes.mckinney@twosigma.com>

Closes apache#232 from wesm/remove-libparquet_thrift and squashes the following commits:

d72546b [Wes McKinney] Remove parquet/thrift subdirectory and separate parquet_thrift library component

Change-Id: I3922cf10aab607e8db5ddabba888a38763ff59f7
wesm added a commit to wesm/arrow that referenced this pull request Sep 7, 2018
Author: Wes McKinney <wes.mckinney@twosigma.com>

Closes apache#232 from wesm/remove-libparquet_thrift and squashes the following commits:

d72546b [Wes McKinney] Remove parquet/thrift subdirectory and separate parquet_thrift library component

Change-Id: I3922cf10aab607e8db5ddabba888a38763ff59f7
wesm added a commit to wesm/arrow that referenced this pull request Sep 8, 2018
Author: Wes McKinney <wes.mckinney@twosigma.com>

Closes apache#232 from wesm/remove-libparquet_thrift and squashes the following commits:

d72546b [Wes McKinney] Remove parquet/thrift subdirectory and separate parquet_thrift library component

Change-Id: I3922cf10aab607e8db5ddabba888a38763ff59f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants