From 30984b7c839be7649c5b1759c49b975b53ea036f Mon Sep 17 00:00:00 2001 From: jxiang Date: Tue, 18 Jun 2013 02:02:16 +0000 Subject: [PATCH] HBASE-8757 ZK throws IllegalStateException git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1493984 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java index 85405bcc08a..d10dd7c93e0 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java @@ -400,10 +400,11 @@ public class ZooKeeperWatcher implements Watcher, Abortable, Closeable { break; case ConnectedReadOnly: + case SaslAuthenticated: break; default: - throw new IllegalStateException("Received event is not valid."); + throw new IllegalStateException("Received event is not valid: " + event.getState()); } }