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-25288: Fix TestMmCompactorOnTez #2476

Merged
merged 1 commit into from
Jul 16, 2021
Merged

Conversation

deniskuzZ
Copy link
Member

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

@@ -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");
Copy link
Contributor

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.

Copy link
Contributor

@pvary pvary left a 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

@deniskuzZ
Copy link
Member Author

deniskuzZ commented Jul 16, 2021

Please fix the MetastoreConf stuff. Otherwise LGTM.

Thanks,
Peter

done

zchovan pushed a commit to zchovan/hive that referenced this pull request Jul 29, 2021
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants