You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2019/11/04 19:48:16 UTC

[GitHub] [helix] pkuwm opened a new issue #566: java.lang.NullPointerException in unit tests

pkuwm opened a new issue #566: java.lang.NullPointerException  in unit tests
URL: https://github.com/apache/helix/issues/566
 
 
   START testClusterExpansion at Mon Nov 04 10:27:57 PST 2019
   80422 [HelixTaskExecutor-message_handle_thread] ERROR org.apache.helix.messaging.handling.HelixTask  - Exception while executing a message. java.lang.NullPointerException msgId: 2573967b-fb75-46b1-8e6c-d4bfbb513837 type: STATE_TRANSITION
   java.lang.NullPointerException
           at java.util.HashMap.putMapEntries(HashMap.java:500)
           at java.util.HashMap.<init>(HashMap.java:489)
           at org.apache.helix.ZNRecord.lambda$new$0(ZNRecord.java:106)
           at java.util.TreeMap.forEach(TreeMap.java:1005)
           at org.apache.helix.ZNRecord.<init>(ZNRecord.java:106)
           at org.apache.helix.ZNRecord.<init>(ZNRecord.java:94)
           at org.apache.helix.ZNRecordDelta.<init>(ZNRecordDelta.java:51)
           at org.apache.helix.messaging.handling.HelixStateTransitionHandler.postHandleMessage(HelixStateTransitionHandler.java:230)
           at org.apache.helix.messaging.handling.HelixStateTransitionHandler.handleMessage(HelixStateTransitionHandler.java:371)
           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)
   
   It seems related to ZNRecord deep copy commit: https://github.com/apache/helix/commit/2a335cf73ac65b53fd2b06c6b1ee8c70553d30b1
   When the nested map value is null, when v == null, new HashMap<>(v) gives java.lang.NullPointerException

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org