pvary commented on a change in pull request #2476:
URL: https://github.com/apache/hive/pull/2476#discussion_r670274361
##########
File path:
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorOnTezTest.java
##########
@@ -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");
Review comment:
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]