PHOENIX-1346: Base exception gets wrapped as incompatible jar exception 
(Samarth Jain)


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

Branch: refs/heads/3.0
Commit: 9ffd8c63a8d1875ba672eae57be8b7cd29176450
Parents: ff0a074
Author: Jeffrey Zhong <jeffr...@apache.org>
Authored: Wed Nov 5 11:05:00 2014 -0800
Committer: Jeffrey Zhong <jeffr...@apache.org>
Committed: Wed Nov 5 11:10:45 2014 -0800

----------------------------------------------------------------------
 .../java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/9ffd8c63/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
index c53c19b..31d46e0 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
@@ -851,6 +851,8 @@ public class ConnectionQueryServicesImpl extends 
DelegateQueryServices implement
                 }
             }
             lowestClusterHBaseVersion = minHBaseVersion;
+        } catch (SQLException e) {
+            throw e;
         } catch (Throwable t) {
             // This is the case if the "phoenix.jar" is not on the classpath 
of HBase on the region server
             throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.INCOMPATIBLE_CLIENT_SERVER_JAR).setRootCause(t)

Reply via email to