[
https://issues.apache.org/jira/browse/TAJO-738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13962584#comment-13962584
]
Hyunsik Choi commented on TAJO-738:
-----------------------------------
I discussed the reproduction condition of this issue to Hyoungjun in offline. I
add more description of this issue.
When a query is issued to TajoMaster, the query is checked if the query is
forwarded to a query master or can be directly executed in TajoMaster. This bug
is caused when the query is forwarded to the query master and the global
planning is failed in the query master. The current implementation does not
handle such a case. It causes NPE in QueryMaster.
> NPE occur when failed in QueryMaster's GlobalPlanner.build().
> ---------------------------------------------------------------
>
> Key: TAJO-738
> URL: https://issues.apache.org/jira/browse/TAJO-738
> Project: Tajo
> Issue Type: Bug
> Reporter: hyoungjunkim
> Assignee: hyoungjunkim
> Priority: Minor
> Attachments: TAJO-738.patch
>
>
> If making plan in the QueryMaster, the bellow error message is shown in
> QueryMaster's log.
> {noformat}
> 2014-04-07 10:11:33,090 INFO [QueryMasterClientProtocol-1 Server Worker #2]
> worker.TajoWorkerClientService (TajoWorkerClientService.java:closeQuery(211))
> - Stop Query:q_1396833048200_0002
> java.lang.NullPointerException
> at
> org.apache.tajo.master.querymaster.QueryMaster.buildTajoHeartBeat(QueryMaster.java:364)
> at
> org.apache.tajo.master.querymaster.QueryMaster.access$800(QueryMaster.java:60)
> at
> org.apache.tajo.master.querymaster.QueryMaster$QueryHeartbeatThread.run(QueryMaster.java:408)
> {noformat}
> Also similar message shown in CLI.
> {noformat}
> 2014-04-07 10:11:33,087 ERROR [TajoClient-1 Worker #0] rpc.RpcProtos
> (BlockingRpcClient.java:exceptionCaught(215)) - RPC Exception:Exception
> [org.apache.tajo.ipc.QueryMasterClientProtocol(192.168.0.159:28092)]:
> java.lang.NullPointerException
> at
> org.apache.tajo.worker.TajoWorkerClientService$TajoWorkerClientProtocolServiceHandler.getQueryStatus(TajoWorkerClientService.java:190)
> at
> org.apache.tajo.ipc.QueryMasterClientProtocol$QueryMasterClientProtocolService$2.callBlockingMethod(QueryMasterClientProtocol.java:115)
> at
> org.apache.tajo.rpc.BlockingRpcServer$ServerHandler.messageReceived(BlockingRpcServer.java:103)
> at
> org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
> at
> org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70)
> at
> org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
> at
> org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
> at
> org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
> at
> org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
> at
> org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
> at
> org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
> at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
> at
> org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)
> at
> org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
> at
> org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)
> at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)