That's just a little funny.

Just started a long run of ChaosMonkeyNothingIsSafeTest and after a while I saw 
this flash by:

java.lang.IllegalStateException: This Random was created for/by another thread 
(Thread[TEST-TestScope-org.apache.solr.cloud.ChaosMonkeyNothingIsSafeTest.testDistribSearch-seed#[2EDBF53611C44F4C],5,RandomizedRunner-SuiteThreadGroup-org.apache.solr.cloud.ChaosMonkeyNothingIsSafeTest]).
 Random instances must not be shared (acquire per-thread). Current thread: 
Thread[Thread-52,5,RandomizedRunner-SuiteThreadGroup-org.apache.solr.cloud.ChaosMonkeyNothingIsSafeTest]
        at 
com.carrotsearch.randomizedtesting.AssertingRandom.checkValid(AssertingRandom.java:139)
        at 
com.carrotsearch.randomizedtesting.AssertingRandom.nextBoolean(AssertingRandom.java:43)
        at org.apache.solr.cloud.ChaosMonkey$1.run(ChaosMonkey.java:353)
Caused by: com.carrotsearch.randomizedtesting.NotAnException: Original 
allocation stack for this Random (allocated by 
Thread[TEST-TestScope-org.apache.solr.cloud.ChaosMonkeyNothingIsSafeTest.testDistribSearch-seed#[2EDBF53611C44F4C],5,RandomizedRunner-SuiteThreadGroup-org.apache.solr.cloud.ChaosMonkeyNothingIsSafeTest])
        at java.lang.Thread.getStackTrace(Thread.java:1495)
        at 
com.carrotsearch.randomizedtesting.AssertingRandom.<init>(AssertingRandom.java:33)

I'll look into it. But you've got to love an Exception called NotAnException.

- Mark Miller
lucidimagination.com












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

Reply via email to