hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject hbase git commit: HBASE-16101 addendum. Fixes runtime ClassCastException of Future<Integer> in ProcedureWALPerformanceEvaluation.
Date Fri, 02 Sep 2016 00:46:59 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 817660dd1 -> 5c7fa12ab


HBASE-16101 addendum. Fixes runtime ClassCastException of Future<Integer> in ProcedureWALPerformanceEvaluation.

Change-Id: Ibe4f3a001b4f50e8598e367cc8648aeae129eee8


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

Branch: refs/heads/master
Commit: 5c7fa12ab31d840955454c76d72b799486036313
Parents: 817660d
Author: Apekshit Sharma <appy@apache.org>
Authored: Thu Sep 1 17:23:54 2016 -0700
Committer: Apekshit Sharma <appy@apache.org>
Committed: Thu Sep 1 17:23:54 2016 -0700

----------------------------------------------------------------------
 .../procedure2/store/wal/ProcedureWALPerformanceEvaluation.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/5c7fa12a/hbase-procedure/src/test/java/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALPerformanceEvaluation.java
----------------------------------------------------------------------
diff --git a/hbase-procedure/src/test/java/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALPerformanceEvaluation.java
b/hbase-procedure/src/test/java/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALPerformanceEvaluation.java
index 210ac43..6f1332c 100644
--- a/hbase-procedure/src/test/java/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALPerformanceEvaluation.java
+++ b/hbase-procedure/src/test/java/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALPerformanceEvaluation.java
@@ -145,7 +145,7 @@ public class ProcedureWALPerformanceEvaluation extends AbstractHBaseTool
{
     try {
       setupProcedureStore();
       ExecutorService executor = Executors.newFixedThreadPool(numThreads);
-      Future<Integer>[] futures = (Future<Integer>[]) new Object[numThreads];
+      Future<?>[] futures = new Future<?>[numThreads];
       // Start worker threads.
       long start = System.currentTimeMillis();
       for (int i = 0; i < numThreads; i++) {
@@ -153,7 +153,7 @@ public class ProcedureWALPerformanceEvaluation extends AbstractHBaseTool
{
       }
       boolean failure = false;
       try {
-        for (Future<Integer> future : futures) {
+        for (Future<?> future : futures) {
           long timeout = start + WORKER_THREADS_TIMEOUT_SEC * 1000 - System.currentTimeMillis();
           failure |= (future.get(timeout, TimeUnit.MILLISECONDS).equals(EXIT_FAILURE));
         }


Mime
View raw message