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

Chinna Rao Lalam commented on HIVE-2178:
----------------------------------------

In some places chaining the actual exception is like "throw new 
HiveException(e.toString())"  so i tried to correct it like "throw new 
HiveException("ExceptionMessgae",e)" and i verified the log messages it is 
comming properly but *.q.out files are not capturing the exception because 
org.apache.hadoop.hive.ql.session.SessionState.LogHelper.printError(String, 
String) is capturing only the first message in *.q.out file and for logs it is 
captured both.

Now i have updated the patch like "throw new HiveException(e.toString())" these 
are changed to "throw new HiveException(e)" now it is capturing the exception 
stack trace in *.q.out and log files also
                
> Log related Check style Comments fixes
> --------------------------------------
>
>                 Key: HIVE-2178
>                 URL: https://issues.apache.org/jira/browse/HIVE-2178
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.5.0, 0.8.0
>         Environment: Hadoop 0.20.1, Hive0.8.0 and SUSE Linux Enterprise 
> Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5)
>            Reporter: Chinna Rao Lalam
>            Assignee: Chinna Rao Lalam
>         Attachments: HIVE-2178.1.patch, HIVE-2178.2.patch, HIVE-2178.3.patch, 
> HIVE-2178.4.patch, HIVE-2178.patch
>
>
> Fix Log related Check style Comments

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to