Lucene/Solr Get Bitten by Java Bugs

July 30, 2011

The open source search crowd loves Lucene/Solr. The Java goodness helps deliver cross platform goodness. The article “Apache and Oracle Warn of Serious Java 7 Compiler Bugs” suggests that scratchy bites in interesting places are now arriving. The subtitle delivers a pay load:

The newly released Java upgrade suffers hotspot-compiler problems that affect Lucene and Solr

Whoa, horsey.

The bottom line, per Apache Project: Don’t use Apache Lucene/Solr with Java 7 releases before Update 2. If you do, the group recommends that you at least disable loop optimizations using the -XX:-UseLoopPredicate JVM option to avoid the risk of index corruptions. The Apache Project strongly recommended that users avoid running any of the hotspot optimization switches in any version of Java without extensive testing. Additionally, Apache Project advised that users who upgrade to Java 7 may need to reindex, “because the Unicode version shipped with Java 7 changed and tokenization behaves differently (e.g. lowercasing).” More information is available in the JRE_VERSION_MIGRATION.txt file that comes with the distribution package.

Our view is probably superficial. With Oracle slipping on an open source T shirt and hanging with the community, open source goodness is floating down Dolphin Way. However, missteps can create hassles for the Lucene/Solr folks. One wonders if these errors were a result of smart folks rushing a project out the door in order to hit the beach or if the Oracle touch is like one of those Bruce Lee fingers of death. One touch and you are a goner.

Excitement is here.

Stephen E Arnold, July 30, 2011

Freebie just like some open source search software but not all.

Comments

Comments are closed.

  • Archives

  • Recent Posts

  • Meta