You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by we...@apache.org on 2017/02/24 19:04:32 UTC
hive git commit: HIVE-15999 : Fix flakiness in TestDbTxnManager2 (Wei
Zheng, reviewed by Eugene Koifman)
Repository: hive
Updated Branches:
refs/heads/master 338a7ee7d -> 9602a2f60
HIVE-15999 : Fix flakiness in TestDbTxnManager2 (Wei Zheng, reviewed by Eugene Koifman)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/9602a2f6
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/9602a2f6
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/9602a2f6
Branch: refs/heads/master
Commit: 9602a2f60e05c3d9de29323fae4e96757be2274a
Parents: 338a7ee
Author: Wei Zheng <we...@apache.org>
Authored: Fri Feb 24 11:04:14 2017 -0800
Committer: Wei Zheng <we...@apache.org>
Committed: Fri Feb 24 11:04:14 2017 -0800
----------------------------------------------------------------------
.../org/apache/hadoop/hive/ql/lockmgr/TestDbTxnManager2.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/9602a2f6/ql/src/test/org/apache/hadoop/hive/ql/lockmgr/TestDbTxnManager2.java
----------------------------------------------------------------------
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/lockmgr/TestDbTxnManager2.java b/ql/src/test/org/apache/hadoop/hive/ql/lockmgr/TestDbTxnManager2.java
index 180eea6..7cae109 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/lockmgr/TestDbTxnManager2.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/lockmgr/TestDbTxnManager2.java
@@ -71,8 +71,7 @@ public class TestDbTxnManager2 {
private Driver driver;
TxnStore txnHandler;
- @BeforeClass
- public static void setUpClass() throws Exception {
+ public TestDbTxnManager2() throws Exception {
conf
.setVar(HiveConf.ConfVars.HIVE_AUTHORIZATION_MANAGER,
"org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory");
@@ -374,6 +373,8 @@ public class TestDbTxnManager2 {
cpr = driver.compileAndRespond("delete from T10");
Assert.assertEquals(ErrorMsg.ACID_OP_ON_NONACID_TXNMGR.getErrorCode(), cpr.getResponseCode());
Assert.assertTrue(cpr.getErrorMessage().contains("Attempt to do update or delete using transaction manager that does not support these operations."));
+
+ conf.setVar(HiveConf.ConfVars.HIVE_TXN_MANAGER, "org.apache.hadoop.hive.ql.lockmgr.DbTxnManager");
}
/**