jiajunwang opened a new issue #1752:
URL: https://github.com/apache/helix/issues/1752


   ### Describe the bug
   One NPE is observed in the DistClusterControllerStateModel when cleanup is 
triggered in parallel with other state transitions.
   
   29066 [HelixTaskExecutor-message_handle_STATE_TRANSITION] ERROR 
org.apache.helix.messaging.handling.HelixStateTransitionHandler  - Exception 
while executing a state transition task TestClusterStatusMonitorLifecycle0_2
   java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.apache.helix.messaging.handling.HelixStateTransitionHandler.invoke(HelixStateTransitionHandler.java:386)
        at 
org.apache.helix.messaging.handling.HelixStateTransitionHandler.handleMessage(HelixStateTransitionHandler.java:313)
        at org.apache.helix.messaging.handling.HelixTask.call(HelixTask.java:97)
        at org.apache.helix.messaging.handling.HelixTask.call(HelixTask.java:49)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
   Caused by: java.lang.NullPointerException
        at 
org.apache.helix.participant.DistClusterControllerStateModel.onBecomeLeaderFromStandby(DistClusterControllerStateModel.java:72)
        ... 11 more
   
   I believe this exception makes the test TestClusterStatusMonitorLifecycle 
unstable.
   
   ### To Reproduce
   Trigger leader to standby transition and close the controller-participant at 
the same time.
   
   ### Expected behavior
   No NPE.
   
   ### Additional context
   Add any other context about the problem here.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to