James Taylor created PHOENIX-2396:
-------------------------------------
Summary: Set root cause exception when parsing server exception
Key: PHOENIX-2396
URL: https://issues.apache.org/jira/browse/PHOENIX-2396
Project: Phoenix
Issue Type: Bug
Reporter: James Taylor
We're seeing this mysterious flapping exception in our Jenkins builds:
{code}
testDropIndexedColumn(org.apache.phoenix.end2end.AlterTableIT) Time elapsed:
3.556 sec <<< ERROR!
java.sql.SQLException: ERROR 2009 (INT11): Unknown error code 0
at
org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:396)
at
org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:145)
at
org.apache.phoenix.exception.SQLExceptionCode.fromErrorCode(SQLExceptionCode.java:424)
at
org.apache.phoenix.util.ServerUtil.parseRemoteException(ServerUtil.java:127)
at
org.apache.phoenix.util.ServerUtil.parseServerExceptionOrNull(ServerUtil.java:115)
at
org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:104)
at
org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1053)
at
org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1016)
at
org.apache.phoenix.query.ConnectionQueryServicesImpl.dropColumn(ConnectionQueryServicesImpl.java:1819)
at
org.apache.phoenix.schema.MetaDataClient.dropColumn(MetaDataClient.java:2880)
at
org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDropColumnStatement$1.execute(PhoenixStatement.java:1096)
at
org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:319)
at
org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:311)
at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
at
org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:309)
at
org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1379)
at
org.apache.phoenix.end2end.AlterTableIT.testDropIndexedColumn(AlterTableIT.java:285)
{code}
Looks like the underlying exception is being dropped. Instead, we should set
the root cause to the exception passed in.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)