Open asfimport opened 10 years ago
Michael McCandless (@mikemccand) (migrated from JIRA)
Hi Littlestar, that's a spooky exception, can you provide a test case showing how you hit it? Or describe what led up to it?
Littlestar (migrated from JIRA)
I test lucene on shenandoah with big memory + bigdata(128G, 1.2T).
http://openjdk.java.net/jeps/189
http://icedtea.classpath.org/hg/shenandoah/
It throws above exception. I see the luence code, I think the exception is ok. Because org.apache.lucene.codecs.MappingMultiDocsEnum is not instanceof org.apache.lucene.index.DocsAndPositionsEnum.
Uwe Schindler (@uschindler) (migrated from JIRA)
If it works with other garbage collectors it is more likely a bug in Shenandoah. The other one, G1GC, also has many bugs and throws crazy exceptions in some cases (like a NullPointerException where nothing can be null).
From my view at the code, the casts are correct, it is just something Hotspot fails to handle correctly.
Please open bug report at Oracle. We have not yet tested Lucene with this GC, because it is not yet part of official JDK9 preview releases.
Chris M. Hostetter (@hossman) (migrated from JIRA)
I've updated the summary & description to make it more clear what circumstances this happens in.
Littlestar: it would be very helpful if you could provide some explicit details on what exactly you mean by "test lucene" ... is this test code you wrote? were you running "ant test" from the lucene distribution? ... which test threw this exception? does it reproduce reliably?
if you do open a JDK bug regarding this, please link to this issue, and then post the resulting bug # back here as a comment as well.
Littlestar (migrated from JIRA)
I post a mail to shenandoah develop maillist MARK here. http://icedtea.classpath.org/pipermail/shenandoah/2014-August/000163.html
Thanks.
Littlestar (migrated from JIRA)
I test again, there are some strange exception
org.apache.lucene.index.MergePolicy$MergeException: java.lang.NullPointerException org.apache.lucene.index.MergePolicy$MergeException: java.io.IOException: Invalid vLong detected (negative values disallowed)
I post at top.
User report of bizare ClassCastException when running some lucene code with the (experimental) shenandoah GC
Migrated from LUCENE-5899 by Littlestar, updated Aug 28 2014 Environment: