[
https://issues.apache.org/jira/browse/HIVE-8481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14173358#comment-14173358
]
Navis commented on HIVE-8481:
-----------------------------
[~prasadm] Could you check this? I think this should be fixed also in
hive-0.14.0.
> 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
> 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)