You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tajo.apache.org by "JaeHwa Jung (JIRA)" <ji...@apache.org> on 2013/10/10 05:50:47 UTC

[jira] [Commented] (TAJO-241) Does not reconnect the meta store

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

JaeHwa Jung commented on TAJO-241:
----------------------------------

+1 for the patch.

I create a sample table on MySQL CatalogStore and I ran some queries on MySQL cli as follows:

{code:xml}
mysql> show tables;
+----------------+
| Tables_in_tajo |
+----------------+
| COLUMNS        |
| INDEXES        |
| META           |
| OPTIONS        |
| STATS          |
| TABLES         |
+----------------+
6 rows in set (0.00 sec)

mysql> select * from TABLES;
+-----+----------+---------------------------------------+------------+
| TID | TABLE_ID | path                                  | store_type |
+-----+----------+---------------------------------------+------------+
|   1 | table1   | file:/~/data/table1 | CSV        |
+-----+----------+---------------------------------------+------------+
1 row in set (0.00 sec)

{code}

> Does not reconnect the meta store
> ---------------------------------
>
>                 Key: TAJO-241
>                 URL: https://issues.apache.org/jira/browse/TAJO-241
>             Project: Tajo
>          Issue Type: Bug
>          Components: catalog
>    Affects Versions: 0.2-incubating
>            Reporter: Jinho Kim
>            Assignee: Jinho Kim
>             Fix For: 0.2-incubating
>
>         Attachments: TAJO-241.patch
>
>
> {code}
> 2013-10-08 16:30:44,147 ERROR catalog.CatalogServer (CatalogServer.java:getTableDesc(188)) - java.io.IOException: com.mysql.jdbc.exceptio
> ns.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
> 2013-10-08 16:30:44,147 ERROR master.GlobalEngine (GlobalEngine.java:executeQuery(166)) - 
> Stack Trace:
> java.lang.NullPointerException
>         at org.apache.tajo.catalog.TableDescImpl.<init>(TableDescImpl.java:55)
>         at org.apache.tajo.catalog.CatalogUtil.newTableDesc(CatalogUtil.java:128)
>         at org.apache.tajo.catalog.AbstractCatalogClient.getTableDesc(AbstractCatalogClient.java:52)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitRelation(LogicalPlanner.java:167)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitRelation(LogicalPlanner.java:68)
>         at org.apache.tajo.engine.planner.BaseAlgebraVisitor.visitChild(BaseAlgebraVisitor.java:89)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitRelationList(LogicalPlanner.java:201)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitRelationList(LogicalPlanner.java:68)
>         at org.apache.tajo.engine.planner.BaseAlgebraVisitor.visitChild(BaseAlgebraVisitor.java:83)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitFilter(LogicalPlanner.java:414)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitFilter(LogicalPlanner.java:68)
>         at org.apache.tajo.engine.planner.BaseAlgebraVisitor.visitChild(BaseAlgebraVisitor.java:71)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitGroupBy(LogicalPlanner.java:446)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitGroupBy(LogicalPlanner.java:68)
>         at org.apache.tajo.engine.planner.BaseAlgebraVisitor.visitChild(BaseAlgebraVisitor.java:65)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitSort(LogicalPlanner.java:600)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitSort(LogicalPlanner.java:68)
>         at org.apache.tajo.engine.planner.BaseAlgebraVisitor.visitChild(BaseAlgebraVisitor.java:59)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitLimit(LogicalPlanner.java:631)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitLimit(LogicalPlanner.java:68)
>         at org.apache.tajo.engine.planner.BaseAlgebraVisitor.visitChild(BaseAlgebraVisitor.java:56)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitProjection(LogicalPlanner.java:675)
>         at org.apache.tajo.engine.planner.LogicalPlanner.visitProjection(LogicalPlanner.java:68)
>         at org.apache.tajo.engine.planner.BaseAlgebraVisitor.visitChild(BaseAlgebraVisitor.java:53)
>         at org.apache.tajo.engine.planner.LogicalPlanner.createPlan(LogicalPlanner.java:101)
>         at org.apache.tajo.master.GlobalEngine.createLogicalPlan(GlobalEngine.java:214)
>         at org.apache.tajo.master.GlobalEngine.executeQuery(GlobalEngine.java:137)
>         at org.apache.tajo.master.TajoMasterClientService$TajoMasterClientProtocolServiceHandler.submitQuery(TajoMasterClientService.java
> :134)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)