You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ec...@apache.org on 2014/08/01 00:08:18 UTC

[42/50] [abbrv] git commit: [HBASE-9930] ThriftHRegionServer.setQuorumReadTimeoutMillis was leftover in the Asyncification process.

[HBASE-9930] ThriftHRegionServer.setQuorumReadTimeoutMillis was leftover in the Asyncification process.

Summary: Asyncification ThriftHRegionServer.setQuorumReadTimeoutMillis as well

Test Plan: Run TestHRegionInterfaceSimpleFunctions#setQuorumReadTimeoutMillis.

Reviewers: elliott

Reviewed By: elliott

Subscribers: hbase-eng@

Differential Revision: https://phabricator.fb.com/D1416404

git-svn-id: svn+ssh://tubbs/svnhive/hadoop/branches/titan/VENDOR.hbase/hbase-trunk@43367 e7acf4d4-3532-417f-9e73-7a9ae25a1f51


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

Branch: refs/heads/0.89-fb
Commit: e3de48dd2f76cad41e2934efc6258b0c3450f029
Parents: 78c632a
Author: manukranthk <ma...@e7acf4d4-3532-417f-9e73-7a9ae25a1f51>
Authored: Tue Jul 8 14:33:18 2014 +0000
Committer: Elliott Clark <el...@fb.com>
Committed: Thu Jul 31 14:44:24 2014 -0700

----------------------------------------------------------------------
 .../hbase/regionserver/ThriftHRegionServer.java      | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e3de48dd/src/main/java/org/apache/hadoop/hbase/regionserver/ThriftHRegionServer.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/hadoop/hbase/regionserver/ThriftHRegionServer.java b/src/main/java/org/apache/hadoop/hbase/regionserver/ThriftHRegionServer.java
index 1ba2f62..5b2d328 100644
--- a/src/main/java/org/apache/hadoop/hbase/regionserver/ThriftHRegionServer.java
+++ b/src/main/java/org/apache/hadoop/hbase/regionserver/ThriftHRegionServer.java
@@ -29,7 +29,6 @@ import java.util.Map;
 import java.util.Map.Entry;
 import java.util.concurrent.Callable;
 import java.util.concurrent.Executors;
-import java.util.concurrent.atomic.AtomicLong;
 
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
@@ -54,7 +53,6 @@ import org.apache.hadoop.hbase.client.RowMutations;
 import org.apache.hadoop.hbase.client.Scan;
 import org.apache.hadoop.hbase.client.TMultiResponse;
 import org.apache.hadoop.hbase.client.TRowMutations;
-import org.apache.hadoop.hbase.io.hfile.histogram.HFileHistogram;
 import org.apache.hadoop.hbase.io.hfile.histogram.HFileHistogram.Bucket;
 import org.apache.hadoop.hbase.ipc.HBaseServer;
 import org.apache.hadoop.hbase.ipc.ScannerResult;
@@ -69,7 +67,6 @@ import org.apache.hadoop.io.LongWritable;
 import org.apache.hadoop.io.MapWritable;
 import org.apache.hadoop.io.Writable;
 
-import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 
 /**
@@ -762,10 +759,14 @@ public class ThriftHRegionServer implements ThriftHRegionInterface.Async {
   }
 
   @Override
-  public ListenableFuture<Void> setHDFSQuorumReadTimeoutMillis(long timeoutMillis) {
-    server.setHDFSQuorumReadTimeoutMillis(timeoutMillis);
-    return null;
-
+  public ListenableFuture<Void> setHDFSQuorumReadTimeoutMillis(
+      final long timeoutMillis) {
+    return readService.submit(new Callable<Void>() {
+      @Override public Void call() throws Exception {
+        server.setHDFSQuorumReadTimeoutMillis(timeoutMillis);
+        return null;
+      }
+    });
   }
 
   @Override