This is an automated email from the ASF dual-hosted git repository. kgyrtkirk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/hive.git
commit bbcb1d1d5ac6426298fcbdcaafa04a90ef90d374 Author: Peter Vary <pv...@cloudera.com> AuthorDate: Thu Dec 5 10:09:25 2019 +0000 HIVE-22580: Flakyness in TestDbTxnManager2 (Peter Vary via Zoltan Haindrich) Signed-off-by: Zoltan Haindrich <k...@rxd.hu> --- .../src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java index 2a019d2..6131aab 100644 --- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java +++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java @@ -65,7 +65,7 @@ public final class TxnDbUtil { MetastoreConf.setBoolVar(conf, ConfVars.HIVE_SUPPORT_CONCURRENCY, true); } - public static void prepDb(Configuration conf) throws Exception { + public static synchronized void prepDb(Configuration conf) throws Exception { // This is a bogus hack because it copies the contents of the SQL file // intended for creating derby databases, and thus will inexorably get // out of date with it. I'm open to any suggestions on how to make this