You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Patrick Cavrel (JIRA)" <ji...@apache.org> on 2017/10/19 08:37:00 UTC
[jira] [Created] (PHOENIX-4302) Phoenix interface raises
SQLException without any errorCode in case of IOException
Patrick Cavrel created PHOENIX-4302:
---------------------------------------
Summary: Phoenix interface raises SQLException without any errorCode in case of IOException
Key: PHOENIX-4302
URL: https://issues.apache.org/jira/browse/PHOENIX-4302
Project: Phoenix
Issue Type: Bug
Affects Versions: 4.10.0
Reporter: Patrick Cavrel
Priority: Minor
In Phoenix there is a path where a SQLException is thrown without any errorCode.
The expected value is SQLExceptionCode.IO_EXCEPTION in case the original exception is an IOException.
The purpose is to allow client retries on this error code.
Here after are the SQLException source code path:
Cause0: java.sql.SQLException: hbase.client.HBaseClientException: Could not create HBase connection
at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2464)
} catch (Exception e) {
if (e instanceof SQLException) {
initializationException = (SQLException)e;
} else {
// wrap every other exception into a SQLException
* initializationException = new SQLException(e);*
}
The e exception can be an exception which cause is an IOException raised by HBase.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)