Repository: hbase Updated Branches: refs/heads/0.94 24f150ebb -> 24b3584a1
HBASE-11479 SecureConnection can't be closed when SecureClient is stopping (cuijianwei) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/24b3584a Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/24b3584a Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/24b3584a Branch: refs/heads/0.94 Commit: 24b3584a1735b5a0fcd0f25a5d3903b31901b227 Parents: 24f150e Author: Andrew Purtell <apurt...@apache.org> Authored: Fri Jul 11 13:11:00 2014 -0700 Committer: Andrew Purtell <apurt...@apache.org> Committed: Fri Jul 11 13:11:00 2014 -0700 ---------------------------------------------------------------------- .../main/java/org/apache/hadoop/hbase/ipc/SecureClient.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/24b3584a/security/src/main/java/org/apache/hadoop/hbase/ipc/SecureClient.java ---------------------------------------------------------------------- diff --git a/security/src/main/java/org/apache/hadoop/hbase/ipc/SecureClient.java b/security/src/main/java/org/apache/hadoop/hbase/ipc/SecureClient.java index 9599a6e..38ad5aa 100644 --- a/security/src/main/java/org/apache/hadoop/hbase/ipc/SecureClient.java +++ b/security/src/main/java/org/apache/hadoop/hbase/ipc/SecureClient.java @@ -293,8 +293,11 @@ public class SecureClient extends HBaseClient { if (rand == null) { rand = new Random(); } - handleSaslConnectionFailure(numRetries++, MAX_RETRIES, ex, rand, - ticket); + try { + handleSaslConnectionFailure(numRetries++, MAX_RETRIES, ex, rand, ticket); + } catch (InterruptedException e) { + throw new IOException(e); + } continue; } if (continueSasl) {