From b3fca37a4c8b86a8851f7886ecbaf71b795f771f Mon Sep 17 00:00:00 2001
From: Jean-Daniel Cryans <jdcryans@cloudera.com>
Date: Thu, 17 Dec 2015 16:19:41 -0800
Subject: [PATCH] [kudu] Bump the default admin timeout

The default 10s timeout can be too low when creating large tables on
slow devices. This patch just uses the already-defined default of
60s for that operation.
---
 kudu/src/main/java/com/yahoo/ycsb/db/KuduYCSBClient.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kudu/src/main/java/com/yahoo/ycsb/db/KuduYCSBClient.java b/kudu/src/main/java/com/yahoo/ycsb/db/KuduYCSBClient.java
index 616a4a3c..503c574a 100644
--- a/kudu/src/main/java/com/yahoo/ycsb/db/KuduYCSBClient.java
+++ b/kudu/src/main/java/com/yahoo/ycsb/db/KuduYCSBClient.java
@@ -134,7 +134,8 @@ public class KuduYCSBClient extends com.yahoo.ycsb.DB {
 
     client = new KuduClient.KuduClientBuilder(masterAddresses)
         .defaultSocketReadTimeoutMs(DEFAULT_SLEEP)
-        .defaultOperationTimeoutMs(DEFAULT_SLEEP).build();
+        .defaultOperationTimeoutMs(DEFAULT_SLEEP)
+        .defaultAdminOperationTimeoutMs(DEFAULT_SLEEP).build();
     if (debug) {
       System.out.println("Connecting to the masters at " + masterAddresses);
     }
-- 
GitLab