-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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-25288: Fix TestMmCompactorOnTez #2476
Conversation
@@ -85,6 +86,8 @@ public void setup() throws Exception { | |||
hiveConf.setVar(HiveConf.ConfVars.METASTOREWAREHOUSE, TEST_WAREHOUSE_DIR); | |||
hiveConf.setVar(HiveConf.ConfVars.HIVEINPUTFORMAT, HiveInputFormat.class.getName()); | |||
hiveConf.setVar(HiveConf.ConfVars.HIVEFETCHTASKCONVERSION, "none"); | |||
hiveConf.set(MetastoreConf.ConfVars.TXN_OPENTXN_TIMEOUT.getVarname(), "2000"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the code below to set MetastoreConf values to handle migration between HiveConf, MetastoreConf:
MetastoreConf.setVar(hiveConf, MetastoreConf.ConfVars.TXN_OPENTXN_TIMEOUT, "2000");
This is not too relevant here since this is only test code, but I prefer to stick to the standard way everywhere, so the next contributor will learn correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the MetastoreConf stuff. Otherwise LGTM.
Thanks,
Peter
done |
What changes were proposed in this pull request?
Why are the changes needed?
Fixed a bug caused by open txn commit timeout
Does this PR introduce any user-facing change?
No
How was this patch tested?
http://ci.hive.apache.org/job/hive-flaky-check/321