kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From granthe...@apache.org
Subject kudu git commit: [test] Clear the KuduClientCache between tests
Date Tue, 13 Nov 2018 23:31:51 GMT
Repository: kudu
Updated Branches:
  refs/heads/master c136efe47 -> 7621a6d5c


[test] Clear the KuduClientCache between tests

The KuduClientCache is a Scala object, effectively
a singleton, that will live across tests. If the cache
is not cleared between tests, client state and
configurations could carry over from another test
and cause failures that are difficult to debug.

Change-Id: I1d989c00f9b0407e1db4b11df68080ef20cd471c
Reviewed-on: http://gerrit.cloudera.org:8080/11924
Tested-by: Kudu Jenkins
Reviewed-by: Adar Dembo <adar@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/7621a6d5
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/7621a6d5
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/7621a6d5

Branch: refs/heads/master
Commit: 7621a6d5ce78e462cfeb4b667d6d96d3c12f1624
Parents: c136efe
Author: Grant Henke <granthenke@apache.org>
Authored: Tue Nov 13 08:54:22 2018 -0600
Committer: Grant Henke <granthenke@apache.org>
Committed: Tue Nov 13 18:53:01 2018 +0000

----------------------------------------------------------------------
 .../src/test/scala/org/apache/kudu/spark/kudu/KuduTestSuite.scala   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/7621a6d5/java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduTestSuite.scala
----------------------------------------------------------------------
diff --git a/java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduTestSuite.scala
b/java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduTestSuite.scala
index da43ef6..2f13ed2 100644
--- a/java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduTestSuite.scala
+++ b/java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduTestSuite.scala
@@ -142,6 +142,7 @@ trait KuduTestSuite extends JUnitSuite {
   @After
   def tearDownBase() {
     if (ss != null) ss.stop()
+    KuduClientCache.clearCacheForTests()
   }
 
   def deleteRow(key: Int): Unit = {


Mime
View raw message