You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pv...@apache.org on 2018/06/04 10:28:21 UTC
hive git commit: HIVE-19730: fix TestTablesGetExists's flakiness
(Peter Vary, reviewed by Jesus Camacho Rodriguez)
Repository: hive
Updated Branches:
refs/heads/master a95ec1e14 -> 439a6e605
HIVE-19730: fix TestTablesGetExists's flakiness (Peter Vary, reviewed by Jesus Camacho Rodriguez)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/439a6e60
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/439a6e60
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/439a6e60
Branch: refs/heads/master
Commit: 439a6e605d078cb167e9626374f7163d7a5caa26
Parents: a95ec1e
Author: Peter Vary <pv...@cloudera.com>
Authored: Mon Jun 4 12:27:00 2018 +0200
Committer: Peter Vary <pv...@cloudera.com>
Committed: Mon Jun 4 12:27:00 2018 +0200
----------------------------------------------------------------------
.../hadoop/hive/metastore/client/TestAddPartitions.java | 4 +++-
.../metastore/client/TestAddPartitionsFromPartSpec.java | 6 +++++-
.../hadoop/hive/metastore/client/TestAlterPartitions.java | 6 +++++-
.../hadoop/hive/metastore/client/TestAppendPartitions.java | 6 +++++-
.../apache/hadoop/hive/metastore/client/TestCatalogs.java | 7 +++++--
.../hadoop/hive/metastore/client/TestCheckConstraint.java | 7 +++++--
.../apache/hadoop/hive/metastore/client/TestDatabases.java | 6 +++++-
.../hadoop/hive/metastore/client/TestDefaultConstraint.java | 7 +++++--
.../hadoop/hive/metastore/client/TestDropPartitions.java | 6 +++++-
.../hive/metastore/client/TestExchangePartitions.java | 6 +++++-
.../apache/hadoop/hive/metastore/client/TestForeignKey.java | 7 +++++--
.../apache/hadoop/hive/metastore/client/TestFunctions.java | 6 +++++-
.../hadoop/hive/metastore/client/TestGetPartitions.java | 6 +++++-
.../hadoop/hive/metastore/client/TestGetTableMeta.java | 6 +++++-
.../hadoop/hive/metastore/client/TestListPartitions.java | 6 +++++-
.../hadoop/hive/metastore/client/TestNotNullConstraint.java | 7 +++++--
.../apache/hadoop/hive/metastore/client/TestPrimaryKey.java | 7 +++++--
.../hadoop/hive/metastore/client/TestRuntimeStats.java | 9 +++++----
.../metastore/client/TestTablesCreateDropAlterTruncate.java | 6 +++++-
.../hadoop/hive/metastore/client/TestTablesGetExists.java | 6 +++++-
.../apache/hadoop/hive/metastore/client/TestTablesList.java | 6 +++++-
.../hadoop/hive/metastore/client/TestUniqueConstraint.java | 7 +++++--
22 files changed, 108 insertions(+), 32 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitions.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitions.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitions.java
index 88064d9..bf559b4 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitions.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitions.java
@@ -95,8 +95,10 @@ public class TestAddPartitions extends MetaStoreClientTest {
@After
public void tearDown() throws Exception {
try {
- if (client != null) {
+ try {
client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitionsFromPartSpec.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitionsFromPartSpec.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitionsFromPartSpec.java
index debcd0e..4f11a55 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitionsFromPartSpec.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitionsFromPartSpec.java
@@ -95,7 +95,11 @@ public class TestAddPartitionsFromPartSpec extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAlterPartitions.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAlterPartitions.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAlterPartitions.java
index 770da1a..54bf3d7 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAlterPartitions.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAlterPartitions.java
@@ -95,7 +95,11 @@ public class TestAlterPartitions extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAppendPartitions.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAppendPartitions.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAppendPartitions.java
index 37ca40c..8ce8531 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAppendPartitions.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAppendPartitions.java
@@ -98,7 +98,11 @@ public class TestAppendPartitions extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCatalogs.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCatalogs.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCatalogs.java
index 02fb9eb..761b977 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCatalogs.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCatalogs.java
@@ -59,7 +59,6 @@ public class TestCatalogs extends MetaStoreClientTest {
public TestCatalogs(String name, AbstractMetaStoreService metaStore) throws Exception {
this.metaStore = metaStore;
- this.metaStore.start();
}
@Before
@@ -93,7 +92,11 @@ public class TestCatalogs extends MetaStoreClientTest {
}
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCheckConstraint.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCheckConstraint.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCheckConstraint.java
index 7733b2d..efac4cf 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCheckConstraint.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCheckConstraint.java
@@ -60,7 +60,6 @@ public class TestCheckConstraint extends MetaStoreClientTest {
public TestCheckConstraint(String name, AbstractMetaStoreService metaStore) throws Exception {
this.metaStore = metaStore;
- this.metaStore.start();
}
@Before
@@ -133,7 +132,11 @@ public class TestCheckConstraint extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDatabases.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDatabases.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDatabases.java
index d558de6..d323ac6 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDatabases.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDatabases.java
@@ -105,7 +105,11 @@ public class TestDatabases extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDefaultConstraint.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDefaultConstraint.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDefaultConstraint.java
index d56006b..f3e026c 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDefaultConstraint.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDefaultConstraint.java
@@ -60,7 +60,6 @@ public class TestDefaultConstraint extends MetaStoreClientTest {
public TestDefaultConstraint(String name, AbstractMetaStoreService metaStore) throws Exception {
this.metaStore = metaStore;
- this.metaStore.start();
}
@Before
@@ -133,7 +132,11 @@ public class TestDefaultConstraint extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDropPartitions.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDropPartitions.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDropPartitions.java
index 9037001..2a566e8 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDropPartitions.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestDropPartitions.java
@@ -110,7 +110,11 @@ public class TestDropPartitions extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestExchangePartitions.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestExchangePartitions.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestExchangePartitions.java
index 473b171..1a2b7e4 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestExchangePartitions.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestExchangePartitions.java
@@ -89,7 +89,11 @@ public class TestExchangePartitions extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestForeignKey.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestForeignKey.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestForeignKey.java
index d8192b1..b058dd2 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestForeignKey.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestForeignKey.java
@@ -62,7 +62,6 @@ public class TestForeignKey extends MetaStoreClientTest {
public TestForeignKey(String name, AbstractMetaStoreService metaStore) throws Exception {
this.metaStore = metaStore;
- this.metaStore.start();
}
@Before
@@ -143,7 +142,11 @@ public class TestForeignKey extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestFunctions.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestFunctions.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestFunctions.java
index b5705f9..db6b599 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestFunctions.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestFunctions.java
@@ -123,7 +123,11 @@ public class TestFunctions extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetPartitions.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetPartitions.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetPartitions.java
index 8040728..4d7f7c1 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetPartitions.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetPartitions.java
@@ -87,7 +87,11 @@ public class TestGetPartitions extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetTableMeta.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetTableMeta.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetTableMeta.java
index d8448c8..59daa52 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetTableMeta.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetTableMeta.java
@@ -101,7 +101,11 @@ public class TestGetTableMeta extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestListPartitions.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestListPartitions.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestListPartitions.java
index e5d1058..a338bd4 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestListPartitions.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestListPartitions.java
@@ -95,7 +95,11 @@ public class TestListPartitions extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestNotNullConstraint.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestNotNullConstraint.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestNotNullConstraint.java
index 0c75295..b32eeda 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestNotNullConstraint.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestNotNullConstraint.java
@@ -60,7 +60,6 @@ public class TestNotNullConstraint extends MetaStoreClientTest {
public TestNotNullConstraint(String name, AbstractMetaStoreService metaStore) throws Exception {
this.metaStore = metaStore;
- this.metaStore.start();
}
@Before
@@ -133,7 +132,11 @@ public class TestNotNullConstraint extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestPrimaryKey.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestPrimaryKey.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestPrimaryKey.java
index 52f5b93..c33572b 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestPrimaryKey.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestPrimaryKey.java
@@ -60,7 +60,6 @@ public class TestPrimaryKey extends MetaStoreClientTest {
public TestPrimaryKey(String name, AbstractMetaStoreService metaStore) throws Exception {
this.metaStore = metaStore;
- this.metaStore.start();
}
@Before
@@ -133,7 +132,11 @@ public class TestPrimaryKey extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestRuntimeStats.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestRuntimeStats.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestRuntimeStats.java
index 0b91ed4..22dbbfd 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestRuntimeStats.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestRuntimeStats.java
@@ -41,12 +41,9 @@ import static org.junit.Assert.assertNotNull;
public class TestRuntimeStats extends MetaStoreClientTest {
private final AbstractMetaStoreService metaStore;
private IMetaStoreClient client;
- private String metastoreName;
public TestRuntimeStats(String name, AbstractMetaStoreService metaStore) throws Exception {
- this.metastoreName = name;
this.metaStore = metaStore;
- this.metaStore.start();
}
@Before
@@ -57,7 +54,11 @@ public class TestRuntimeStats extends MetaStoreClientTest {
@After
public void tearDown() throws Exception {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
client = null;
}
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesCreateDropAlterTruncate.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesCreateDropAlterTruncate.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesCreateDropAlterTruncate.java
index be9e7c9..afa8c9f 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesCreateDropAlterTruncate.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesCreateDropAlterTruncate.java
@@ -199,7 +199,11 @@ public class TestTablesCreateDropAlterTruncate extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesGetExists.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesGetExists.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesGetExists.java
index 0de7f87..e885c0a 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesGetExists.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesGetExists.java
@@ -147,7 +147,11 @@ public class TestTablesGetExists extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesList.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesList.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesList.java
index 00e9104..20c3af0 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesList.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesList.java
@@ -158,7 +158,11 @@ public class TestTablesList extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;
http://git-wip-us.apache.org/repos/asf/hive/blob/439a6e60/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestUniqueConstraint.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestUniqueConstraint.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestUniqueConstraint.java
index 8eb18ec..5842ec5 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestUniqueConstraint.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestUniqueConstraint.java
@@ -60,7 +60,6 @@ public class TestUniqueConstraint extends MetaStoreClientTest {
public TestUniqueConstraint(String name, AbstractMetaStoreService metaStore) throws Exception {
this.metaStore = metaStore;
- this.metaStore.start();
}
@Before
@@ -133,7 +132,11 @@ public class TestUniqueConstraint extends MetaStoreClientTest {
public void tearDown() throws Exception {
try {
if (client != null) {
- client.close();
+ try {
+ client.close();
+ } catch (Exception e) {
+ // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
+ }
}
} finally {
client = null;