HBASE-16611 Flakey org.apache.hadoop.hbase.client.TestReplicasClient.testCancelOfMultiGet
Branch-1 port of HBASE-16611.v2.patch Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/d12abb1a Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/d12abb1a Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/d12abb1a Branch: refs/heads/branch-1.4 Commit: d12abb1ad8001bd84ce7175313cb41e33dea1c10 Parents: b55ae2d Author: Andrew Purtell <apurt...@apache.org> Authored: Wed Sep 13 18:08:54 2017 -0700 Committer: Andrew Purtell <apurt...@apache.org> Committed: Wed Sep 13 18:09:30 2017 -0700 ---------------------------------------------------------------------- .../main/java/org/apache/hadoop/hbase/client/AsyncProcess.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/d12abb1a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncProcess.java ---------------------------------------------------------------------- diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncProcess.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncProcess.java index 10d4f38..097206c 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncProcess.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncProcess.java @@ -789,7 +789,7 @@ class AsyncProcess { @Override public void run() { - MultiResponse res; + MultiResponse res = null; PayloadCarryingServerCallable callable = currentCallable; try { // setup the callable based on the actions, if we don't have one already from the request @@ -828,7 +828,7 @@ class AsyncProcess { throw new RuntimeException(t); } finally { decTaskCounters(multiAction.getRegions(), server); - if (callsInProgress != null && callable != null) { + if (callsInProgress != null && callable != null && res != null) { callsInProgress.remove(callable); } }