hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-13981) Operation.toSQLException eats full exception stack
Date Mon, 13 Jun 2016 15:36:20 GMT

    [ https://issues.apache.org/jira/browse/HIVE-13981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327624#comment-15327624
] 

Thejas M Nair commented on HIVE-13981:
--------------------------------------

Won't this change the error code that would be printed for many errors ?

It seems like the line "  ex.initCause(response.getException())"  should have taken care of
the problem this patch is trying to address.



> Operation.toSQLException eats full exception stack
> --------------------------------------------------
>
>                 Key: HIVE-13981
>                 URL: https://issues.apache.org/jira/browse/HIVE-13981
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>         Attachments: HIVE-13981.1.patch
>
>
> Operation.toSQLException eats half of the exception stack and make debug hard. For example,
we saw an exception:
> {code}
> org.apache.hive.service.cli.HiveSQL Exception : Error while compiling statement: FAILED
: NullPointer Exception null
> at org.apache.hive.service.cli.operation.Operation.toSQL Exception (Operation.java:336)
> at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:113)
> at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:182)
> at org.apache.hive.service.cli.operation.Operation.run(Operation.java:278)
> at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:421)
> at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:408)
> at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:276)
> at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:505)
> at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1317)
> at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1302)
> at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
> at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:562)
> at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang. NullPointer Exception
> {code}
> The real stack causing the NPE is lost.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message