hyoungjunkim created TAJO-627:
---------------------------------

             Summary: TajoClient blocked when failed in QueryMasterTask's 
startQuery()
                 Key: TAJO-627
                 URL: https://issues.apache.org/jira/browse/TAJO-627
             Project: Tajo
          Issue Type: Bug
            Reporter: hyoungjunkim


If creating plan fails in QueryMasterTask, Any report about the status of the 
query is not sent. 
I found the code to ignore the error. This should be fixed.
{code}
public class QueryMasterTask {
  public synchronized void startQuery() {
    ...
    LogicalPlan plan = null;
    try {
      plan = planner.createPlan(expr);
      optimizer.optimize(plan);
    } catch (PlanningException e) {
      //This should be fixed.
      e.printStackTrace();
    }

    try {
      for (LogicalPlan.QueryBlock block : plan.getQueryBlocks()) {
      ...
      queryTaskContext.getEventHandler().handle(new QueryEvent(queryId, 
QueryEventType.START));
    } catch (Exception e) {
      LOG.error(e.getMessage(), e);
      //This should be fixed.
      //TODO how set query failed(???)
      //send FAIL query status
      //this.statusMessage = StringUtils.stringifyException(e);
    }
  }
}
{code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to