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

Update SpillableColumnarBatch to remove buffer from catalog on close #879

Merged
merged 3 commits into from
Sep 30, 2020

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Sep 29, 2020

SpillableColumnarBatch needs to close the buffer through the catalog rather than directly freeing the buffer. Otherwise we can leak buffer IDs being tracked by the catalog with no valid buffer underneath them.

This also updates TempSpillBufferId to be a case class so Scala generates the hash/eq code for it, as this is often used in hash tables.

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe jlowe added the bug Something isn't working label Sep 29, 2020
@jlowe jlowe added this to the Sep 28 - Oct 9 milestone Sep 29, 2020
@jlowe jlowe self-assigned this Sep 29, 2020
@jlowe
Copy link
Member Author

jlowe commented Sep 29, 2020

build

abellina
abellina previously approved these changes Sep 29, 2020
@github-actions
Copy link

👎 Promotion blocked, new vulnerability found

Vulnerability report

Component Vulnerability Description Severity
Apache ZooKeeper CVE-2020-7712 This affects the package json before 10.0.0. It is possible to inject arbritary commands using the parseLookup function. HIGH

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@revans2
Copy link
Collaborator

revans2 commented Sep 29, 2020

build

@github-actions
Copy link

👎 Promotion blocked, new vulnerability found

Vulnerability report

Component Vulnerability Description Severity
Apache ZooKeeper CVE-2020-7712 This affects the package json before 10.0.0. It is possible to inject arbritary commands using the parseLookup function. HIGH

@pxLi
Copy link
Collaborator

pxLi commented Sep 30, 2020

build

@jlowe jlowe merged commit ed4265b into NVIDIA:branch-0.3 Sep 30, 2020
@jlowe jlowe deleted the spillable-catalog-update branch October 28, 2020 16:42
sperlingxx pushed a commit to sperlingxx/spark-rapids that referenced this pull request Nov 20, 2020
…VIDIA#879)

* Update SpillableColumnarBatch to remove buffer from catalog on close

Signed-off-by: Jason Lowe <jlowe@nvidia.com>

* Add unit test

Signed-off-by: Jason Lowe <jlowe@nvidia.com>

* Remove unused imports

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
…VIDIA#879)

* Update SpillableColumnarBatch to remove buffer from catalog on close

Signed-off-by: Jason Lowe <jlowe@nvidia.com>

* Add unit test

Signed-off-by: Jason Lowe <jlowe@nvidia.com>

* Remove unused imports

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
…VIDIA#879)

* Update SpillableColumnarBatch to remove buffer from catalog on close

Signed-off-by: Jason Lowe <jlowe@nvidia.com>

* Add unit test

Signed-off-by: Jason Lowe <jlowe@nvidia.com>

* Remove unused imports

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
tgravescs pushed a commit to tgravescs/spark-rapids that referenced this pull request Nov 30, 2023
…IDIA#879)

Signed-off-by: spark-rapids automation <70000568+nvauto@users.noreply.github.com>

Signed-off-by: spark-rapids automation <70000568+nvauto@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants