You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by pv...@apache.org on 2021/03/18 12:25:04 UTC
[iceberg] branch master updated: Hive: Fix broken
TestHiveClientPool (#2350)
This is an automated email from the ASF dual-hosted git repository.
pvary pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/master by this push:
new 629f7ad Hive: Fix broken TestHiveClientPool (#2350)
629f7ad is described below
commit 629f7ad7c5fbc16da1e0752f5d170889d4e761b4
Author: László Pintér <47...@users.noreply.github.com>
AuthorDate: Thu Mar 18 13:24:52 2021 +0100
Hive: Fix broken TestHiveClientPool (#2350)
---
.../src/test/java/org/apache/iceberg/hive/TestHiveClientPool.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/hive-metastore/src/test/java/org/apache/iceberg/hive/TestHiveClientPool.java b/hive-metastore/src/test/java/org/apache/iceberg/hive/TestHiveClientPool.java
index f5e2ea6..b7870af 100644
--- a/hive-metastore/src/test/java/org/apache/iceberg/hive/TestHiveClientPool.java
+++ b/hive-metastore/src/test/java/org/apache/iceberg/hive/TestHiveClientPool.java
@@ -42,14 +42,12 @@ public class TestHiveClientPool {
public void testConf() {
HiveConf conf = createHiveConf();
conf.set(HiveConf.ConfVars.METASTOREWAREHOUSE.varname, "file:/mywarehouse/");
- conf.setInt("iceberg.hive.client-pool-size", 10);
- HiveClientPool clientPool = new HiveClientPool(conf);
+ HiveClientPool clientPool = new HiveClientPool(10, conf);
HiveConf clientConf = clientPool.hiveConf();
Assert.assertEquals(conf.get(HiveConf.ConfVars.METASTOREWAREHOUSE.varname),
clientConf.get(HiveConf.ConfVars.METASTOREWAREHOUSE.varname));
- Assert.assertEquals(conf.get("iceberg.hive.client-pool-size"), clientConf.get("iceberg.hive.client-pool-size"));
Assert.assertEquals(10, clientPool.poolSize());
// 'hive.metastore.sasl.enabled' should be 'true' as defined in xml