Github user jinossy commented on the pull request:
https://github.com/apache/tajo/pull/430#issuecomment-97008145
If you set an error message in controller, Async {{CallFuture.get()}} can
throw exception.
like this example :
```
@Override
public void done(RpcController controller,
TajoWorkerProtocol.TaskCompletionReport report,
RpcCallback<PrimitiveProtos.BoolProto> done) {
try {
QueryMasterTask queryMasterTask = queryMaster.getQueryMasterTask(
new
QueryId(report.getId().getTaskId().getExecutionBlockId().getQueryId()));
if (queryMasterTask != null) {
queryMasterTask.getEventHandler().handle(new
TaskCompletionEvent(report));
}
done.run(TajoWorker.TRUE_PROTO);
} catch (Exception e) {
LOG.error(e.getMessage(), e);
controller.setFailed(e.getMessage());
done.run(TajoWorker.FALSE_PROTO);
}
}
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---