Navis created HIVE-8481:
---------------------------
Summary: Some of jdbc2 calls ignores non-success from hiveserver2
Key: HIVE-8481
URL: https://issues.apache.org/jira/browse/HIVE-8481
Project: Hive
Issue Type: Bug
Components: JDBC
Reporter: Navis
Assignee: Navis
Priority: Blocker
Fixing test fails in HIVE-8186, I've found some failures are ignored by jdbc
client. Below is code part that verifies result of jdbc call.
{noformat}
public static void verifySuccess(TStatus status, boolean withInfo) throws
SQLException {
if ((status.getStatusCode() != TStatusCode.SUCCESS_STATUS) &&
(withInfo && (status.getStatusCode() !=
TStatusCode.SUCCESS_WITH_INFO_STATUS))) {
throw new HiveSQLException(status);
}
}
{noformat}
If withInfo is false(verifySuccess), it ignores status. By fixing this, two
tests are failed.
(http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/1285/testReport/)
{noformat}
org.apache.hive.minikdc.TestJdbcWithMiniKdc.testNegativeProxyAuth
org.apache.hive.minikdc.TestJdbcWithMiniKdc.testNegativeTokenAuth
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)