You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/04/04 13:00:35 UTC

[jira] [Commented] (TAJO-1413) tsql should not print a stacktrace message of not critical exceptions

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

ASF GitHub Bot commented on TAJO-1413:
--------------------------------------

Github user jihoonson commented on the pull request:

    https://github.com/apache/tajo/pull/433#issuecomment-89548289
  
    I don't think this issue is trivial. 
    You might already consider, but we need to decide which errors are critical or trivial. 
    IMO, we can regard the errors caused by users' mistake as trivial ones. For example, getting table meta of non-existing table might be user's mistake. 
    Any other errors should be regarded as critical errors, and must be exposed to users to help to find what caused the problems. So, the default configuration must be reverted. 


> tsql should not print a stacktrace message of not critical exceptions
> ---------------------------------------------------------------------
>
>                 Key: TAJO-1413
>                 URL: https://issues.apache.org/jira/browse/TAJO-1413
>             Project: Tajo
>          Issue Type: Bug
>            Reporter: Hyunsik Choi
>            Assignee: Dongjoon Hyun
>            Priority: Minor
>             Fix For: 0.11.0, 0.10.1
>
>         Attachments: TAJO-1413.Hyun.150328.1.patch.txt, TAJO-1413.patch
>
>
> See the following error message. It should have printed just {{ERROR: no such a table: table2}} instead of full stacktrace message.
> {noformat}
> default> \d table2
> ERROR: no such a table: table2
> com.google.protobuf.ServiceException: java.sql.SQLException: ERROR: no such a table: table2
> 	at org.apache.tajo.rpc.ServerCallable.withRetries(ServerCallable.java:104)
> 	at org.apache.tajo.client.CatalogAdminClientImpl.getTableDesc(CatalogAdminClientImpl.java:216)
> 	at org.apache.tajo.client.TajoClientImpl.getTableDesc(TajoClientImpl.java:217)
> 	at org.apache.tajo.cli.tsql.commands.DescTableCommand.invoke(DescTableCommand.java:50)
> 	at org.apache.tajo.cli.tsql.TajoCli.executeMetaCommand(TajoCli.java:471)
> 	at org.apache.tajo.cli.tsql.TajoCli.executeParsedResults(TajoCli.java:445)
> 	at org.apache.tajo.cli.tsql.TajoCli.runShell(TajoCli.java:419)
> 	at org.apache.tajo.cli.tsql.TajoCli.main(TajoCli.java:694)
> Caused by: java.sql.SQLException: ERROR: no such a table: table2
> 	at org.apache.tajo.client.CatalogAdminClientImpl$9.call(CatalogAdminClientImpl.java:231)
> 	at org.apache.tajo.client.CatalogAdminClientImpl$9.call(CatalogAdminClientImpl.java:217)
> 	at org.apache.tajo.rpc.ServerCallable.withRetries(ServerCallable.java:94)
> 	... 7 more
> {noformat}



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