Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-1413

tsql should not print a stacktrace message of not critical exceptions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: None
    • Labels:
      None

      Description

      See the following error message. It should have printed just ERROR: no such a table: table2 instead of full stacktrace message.

      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
      

        Attachments

        1. TAJO-1413.Hyun.150328.1.patch.txt
          2 kB
          Dongjoon Hyun
        2. TAJO-1413.patch
          0.8 kB
          Dongjoon Hyun

          Activity

            People

            • Assignee:
              dongjoon Dongjoon Hyun
              Reporter:
              hyunsik Hyunsik Choi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: