Re: com.carrotsearch.randomizedtesting.NotAnException

2012-07-15 Thread Dawid Weiss
> pasted the code, it's clear it's not though! It's a Throwable! See? It's twisted :) > I think perhaps there actually would be a better name - but I'm feeling a > little lazy to think about it, and it hardly seems that important. And I like > a name that gives me a chuckle. It is important in

Re: com.carrotsearch.randomizedtesting.NotAnException

2012-07-15 Thread Mark Miller
On Jul 15, 2012, at 9:33 AM, Dawid Weiss wrote: > While this may be confusing it help in IDEs a lot > because you can click directly on t he stack trace frames instead of > searching manually for a particular place in the code. I did not find it confusing per say - the issue was clear by the mes

Re: com.carrotsearch.randomizedtesting.NotAnException

2012-07-15 Thread Dawid Weiss
> That's just a little funny. Yup. Check out the javadoc: /** * This is never thrown. The only purpose it serves it to carry chained stack traces * for informational purposes. */ @SuppressWarnings("serial") final class NotAnException extends Throwable { Suggestions on how it could be called be

Re: com.carrotsearch.randomizedtesting.NotAnException

2012-07-15 Thread Yonik Seeley
domizedtesting.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.NotAnEx

com.carrotsearch.randomizedtesting.NotAnException

2012-07-15 Thread Mark Miller
ed 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.ChaosMonkeyNothingIsSaf