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

getCatalog can be called from the driver, and can return null #562

Merged
merged 1 commit into from
Aug 14, 2020

Conversation

abellina
Copy link
Collaborator

@abellina abellina commented Aug 14, 2020

Closes #556

When unregistering shuffles we blindly call unregisterGpuShuffle from the driver or executor. This depends on a lazy val that needs a GpuShuffleEnv initialized (we need RMM for our storage, and the driver doesn't have RMM/CUDA so we don't have storage and therefore the GpuShuffleEnv is never initialized). This makes the driver not fail with an NPE in this case as the shuffle manager already was checking for a null catalog.

@abellina abellina requested a review from jlowe August 14, 2020 15:41
@jlowe jlowe added bug Something isn't working shuffle things that impact the shuffle plugin labels Aug 14, 2020
@jlowe jlowe added this to the Aug 3 - Aug 14 milestone Aug 14, 2020
@jlowe
Copy link
Member

jlowe commented Aug 14, 2020

build

@abellina abellina merged commit a3a7220 into NVIDIA:branch-0.2 Aug 14, 2020
@abellina abellina deleted the npe_shuffle_removal branch August 14, 2020 17:59
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
tgravescs pushed a commit to tgravescs/spark-rapids that referenced this pull request Nov 30, 2023
* Added string to decimal conversions.

Signed-off-by: Mike Wilson <[email protected]>
Co-authored-by: Nghia Truong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working shuffle things that impact the shuffle plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] NPE when removing shuffle
2 participants