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

Fix JNI leak on copy to device #10229

Merged
merged 2 commits into from
Feb 7, 2022
Merged

Conversation

revans2
Copy link
Contributor

@revans2 revans2 commented Feb 7, 2022

We were not closing intermediate column view handles when copying nested data from the device to the host. I think we could completely replace NestedColumnVector with ColumnView in the future, but it would require some optimizations in ColumnView to make it happen cleanly, so I didn't do any of that here.

I also renamed one of the methods that had a leak so it would be more clear what it was doing, and I marked it as private so it would be less likely to leak out and be used by other code.

@revans2 revans2 added bug Something isn't working 3 - Ready for Review Ready for review by team Java Affects Java cuDF API. Spark Functionality that helps Spark RAPIDS 4 - Needs cuDF (Java) Reviewer non-breaking Non-breaking change labels Feb 7, 2022
@revans2 revans2 requested a review from a team as a code owner February 7, 2022 12:37
@revans2 revans2 self-assigned this Feb 7, 2022
@codecov
Copy link

codecov bot commented Feb 7, 2022

Codecov Report

Merging #10229 (843fdd4) into branch-22.04 (a7d88cd) will increase coverage by 0.04%.
The diff coverage is 0.00%.

❗ Current head 843fdd4 differs from pull request most recent head 9153b02. Consider uploading reports for the commit 9153b02 to get more accurate results

Impacted file tree graph

@@               Coverage Diff                @@
##           branch-22.04   #10229      +/-   ##
================================================
+ Coverage         10.42%   10.47%   +0.04%     
================================================
  Files               119      122       +3     
  Lines             20603    20502     -101     
================================================
- Hits               2148     2147       -1     
+ Misses            18455    18355     -100     
Impacted Files Coverage Δ
python/cudf/cudf/_fuzz_testing/fuzzer.py 0.00% <0.00%> (ø)
python/cudf/cudf/_fuzz_testing/io.py 0.00% <0.00%> (ø)
python/cudf/cudf/_fuzz_testing/main.py 0.00% <0.00%> (ø)
python/cudf/cudf/_version.py 0.00% <0.00%> (ø)
python/cudf/cudf/comm/gpuarrow.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/_base_index.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/column/categorical.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/column/column.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/column/datetime.py 0.00% <ø> (ø)
python/cudf/cudf/core/column/numerical.py 0.00% <0.00%> (ø)
... and 45 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e458b9...9153b02. Read the comment docs.

@revans2
Copy link
Contributor Author

revans2 commented Feb 7, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 7987791 into rapidsai:branch-22.04 Feb 7, 2022
@revans2 revans2 deleted the anther_leak branch February 7, 2022 18:03
@vyasr vyasr added 4 - Needs Review Waiting for reviewer to review or respond and removed 4 - Needs cuDF (Java) Reviewer labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team 4 - Needs Review Waiting for reviewer to review or respond bug Something isn't working Java Affects Java cuDF API. non-breaking Non-breaking change Spark Functionality that helps Spark RAPIDS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants