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

HIVE-24862: Fix race condition causing NPE during dynamic partition l… #2053

Merged
merged 1 commit into from
Mar 11, 2021

Conversation

zchovan
Copy link
Contributor

@zchovan zchovan commented Mar 9, 2021

…oading

Change-Id: I855ee21653427d4cbd37a4c834fafb95f3d3a9e2

What changes were proposed in this pull request?

Making the newFiles array thread safe avoids potential race condition during dynamic partition load, which could lead to NPE/

Why are the changes needed?

Make the used list threadsafe.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manually as testing this race-condition is quite difficult.

…oading

Change-Id: I855ee21653427d4cbd37a4c834fafb95f3d3a9e2
@zchovan
Copy link
Contributor Author

zchovan commented Mar 9, 2021

cc @szlta @rbalamohan

Copy link
Contributor

@szlta szlta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 pending tests

Copy link
Contributor

@rbalamohan rbalamohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried on a small local cluster. Works fine.

Thanks @zchovan

LGTM. +1

@zchovan
Copy link
Contributor Author

zchovan commented Mar 9, 2021

failed test "dynpart_sort_opt_bucketing" succeeds locally, rerunning the tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants