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

Ashutosh Chauhan commented on HIVE-23305:
-----------------------------------------

+1

> NullPointerException in LlapTaskSchedulerService addNode due to race condition
> ------------------------------------------------------------------------------
>
>                 Key: HIVE-23305
>                 URL: https://issues.apache.org/jira/browse/HIVE-23305
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>            Reporter: Attila Magyar
>            Assignee: Attila Magyar
>            Priority: Major
>             Fix For: 4.0.0
>
>         Attachments: HIVE-23305.1.patch
>
>
> {code:java}
> java.lang.NullPointerException at 
> org.apache.hadoop.hive.llap.tezplugins.LlapTaskSchedulerService.addNode(LlapTaskSchedulerService.java:1575)
>     at 
> org.apache.hadoop.hive.llap.tezplugins.LlapTaskSchedulerService.registerAndAddNode(LlapTaskSchedulerService.java:1566)
>  at 
> org.apache.hadoop.hive.llap.tezplugins.LlapTaskSchedulerService.access$1800(LlapTaskSchedulerService.java:128)
>  at 
> org.apache.hadoop.hive.llap.tezplugins.LlapTaskSchedulerService$NodeStateChangeListener.onCreate(LlapTaskSchedulerService.java:831)
>     at 
> org.apache.hadoop.hive.llap.tezplugins.LlapTaskSchedulerService$NodeStateChangeListener.onCreate(LlapTaskSchedulerService.java:823)
>     at 
> org.apache.hadoop.hive.registry.impl.ZkRegistryBase$InstanceStateChangeListener.childEvent(ZkRegistryBase.java:612)
>    at  {code}
> The above exception happens when a node registers too fast, before the active 
> activeInstances field was initialized.
>  
> The registry is started and the listener is registered before initializing 
> activeInstances.
> {code:java}
> registry.start();
> registry.registerStateChangeListener(new NodeStateChangeListener());
> activeInstances = registry.getInstances(); {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to