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

Jungtaek Lim commented on STORM-1108:
-------------------------------------

Seems like there's race condition in Time.java.

1. Thread A calls Time.sleepUntil(), and passes first if statement.
2. Thread B calls Time.stopSimulating(), and acquire sleepTimesLock, and set 
simulating to false, and threadSleepTimes to null, and release sleepTimesLock.
3. Thread A acquire sleepTimesLock, and put sleep time to threadSleepTimes 
which should throw NPE.

> Random test failure : reset-log-levels-timer fails with NPE
> -----------------------------------------------------------
>
>                 Key: STORM-1108
>                 URL: https://issues.apache.org/jira/browse/STORM-1108
>             Project: Apache Storm
>          Issue Type: Sub-task
>          Components: storm-core
>            Reporter: Jungtaek Lim
>
> https://travis-ci.org/apache/storm/jobs/84955623
> "test-component-specific-config-clojure" shows this issue.
> {code}
> 94755 [reset-log-levels-timer] ERROR b.s.d.worker - Error when processing 
> event
> java.lang.NullPointerException
>       at backtype.storm.utils.Time.sleepUntil(Time.java:61) ~[classes/:?]
>       at backtype.storm.utils.Time.sleep(Time.java:81) ~[classes/:?]
>       at backtype.storm.timer$mk_timer$fn__4130$fn__4131.invoke(timer.clj:60) 
> [classes/:?]
>       at backtype.storm.timer$mk_timer$fn__4130.invoke(timer.clj:42) 
> [classes/:?]
>       at clojure.lang.AFn.run(AFn.java:22) [clojure-1.7.0.jar:?]
>       at java.lang.Thread.run(Thread.java:745) [?:1.8.0_31]
> 94755 [reset-log-levels-timer] ERROR b.s.d.worker - Error when processing 
> event
> java.lang.NullPointerException
>       at backtype.storm.utils.Time.sleepUntil(Time.java:61) ~[classes/:?]
>       at backtype.storm.utils.Time.sleep(Time.java:81) ~[classes/:?]
>       at backtype.storm.timer$mk_timer$fn__4130$fn__4131.invoke(timer.clj:60) 
> [classes/:?]
>       at backtype.storm.timer$mk_timer$fn__4130.invoke(timer.clj:42) 
> [classes/:?]
>       at clojure.lang.AFn.run(AFn.java:22) [clojure-1.7.0.jar:?]
>       at java.lang.Thread.run(Thread.java:745) [?:1.8.0_31]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to