-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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-28802: NPE in MiniHS2 with miniHS2.clusterType=LOCALFS_ONLY #5680
base: master
Are you sure you want to change the base?
Conversation
Was just curious as you said all clusterType seems to work without this and checked in code to find there are multiple test files where this directory is created. hive/itests/hive-unit/src/test/java/org/apache/hive/jdbc/AbstractTestJdbcGenericUDTFGetSplits.java Line 87 in 15d78ae
|
The test files that has the directory TestWMMetricsWithTrigger - Ignored test BaseJdbcWithMiniLlap Maybe we could check if at all this directory is actually being used at some point in these files. |
good point @kokila-19 , let me check the unit tests and remove the same where it's possible |
removed this path from all unit tests, enabled them temporarily and tested, all works, looks like this was a copied code for no reason
|
|
LGTM +1 |
What changes were proposed in this pull request?
Removed an mkdir from MiniHS2 initialization.
Why are the changes needed?
I didn't find why it was needed (introduced in the original MiniHS2 patch), and the whole thing works without it (but caused an NPE in LOCALFS_ONLY mode.
Does this PR introduce any user-facing change?
No.
Is the change a dependency upgrade?
No.
How was this patch tested?
Worked with LLAP/TEZ/LOCALFS_ONLY, ran a simple query that needs tez session (I was assuming that the staging dir hack I removed was needed for tez apps):
locafs_only
llap
tez
sanity-checked itests/hive-unit/target/tmp/log/hive.log but haven't found any suspicious exceptions