kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ale...@apache.org
Subject [2/2] kudu git commit: [jepsen] set default admin operation timeout to 2 minutes
Date Mon, 10 Sep 2018 22:18:46 GMT
[jepsen] set default admin operation timeout to 2 minutes

Increased the default admin operation timeout for the Kudu client
used in Jepsen tests up to 2 minutes.  That's to work around slow DNS
resolutions (sometimes up to 30 seconds) that happen intermittently
while running the tests at VMs provisioned in GCE.

Change-Id: Iaa9ade5cf38b4f3247749fa33bd40ada9616f21f
Reviewed-on: http://gerrit.cloudera.org:8080/11405
Reviewed-by: Hao Hao <hao.hao@cloudera.com>
Tested-by: Kudu Jenkins


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

Branch: refs/heads/master
Commit: edde4bebea8e309a43e3316f78c45df6e6c8c9fe
Parents: 38a4847
Author: Alexey Serbin <aserbin@cloudera.com>
Authored: Fri Sep 7 18:33:30 2018 -0700
Committer: Alexey Serbin <aserbin@cloudera.com>
Committed: Mon Sep 10 22:18:21 2018 +0000

----------------------------------------------------------------------
 java/kudu-jepsen/src/main/clojure/jepsen/kudu/client.clj | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/edde4beb/java/kudu-jepsen/src/main/clojure/jepsen/kudu/client.clj
----------------------------------------------------------------------
diff --git a/java/kudu-jepsen/src/main/clojure/jepsen/kudu/client.clj b/java/kudu-jepsen/src/main/clojure/jepsen/kudu/client.clj
index 65b6e5a..c50201c 100644
--- a/java/kudu-jepsen/src/main/clojure/jepsen/kudu/client.clj
+++ b/java/kudu-jepsen/src/main/clojure/jepsen/kudu/client.clj
@@ -41,9 +41,9 @@
 (defn sync-client
   "Builds and returns a new synchronous Kudu client."
   [master-addresses]
-  (let [builder (new KuduClient$KuduClientBuilder master-addresses)
-        client (. builder build)]
-    client))
+  (let [builder (new KuduClient$KuduClientBuilder master-addresses)]
+    (.defaultAdminOperationTimeoutMs builder 120000)
+    (.build builder)))
 
 (defn close-client
   [sync-client]


Mime
View raw message