return;
}
LOG.info("Stopping QueryMasterTask:" + queryId);
CallFuture future = new CallFuture();
RpcConnectionPool connPool = RpcConnectionPool.getPool(queryMasterContext.getConf());
NettyClientBase tmClient = null;
try {
tmClient = connPool.getConnection(queryMasterContext.getWorkerContext().getTajoMasterAddress(),
TajoMasterProtocol.class, true);
TajoMasterProtocol.TajoMasterProtocolService masterClientService = tmClient.getStub();
masterClientService.stopQueryMaster(null, queryId.getProto(), future);
} catch (Exception e) {
LOG.error(e.getMessage(), e);
} finally {
connPool.releaseConnection(tmClient);
}
try {
future.get(3, TimeUnit.SECONDS);
} catch (Throwable t) {
LOG.warn(t);
}
super.stop();