2011-10-19

Java 7 Update 1 released - Does it fix the Lucene index corru(m)ption and SIGSEGV bugs?

After the serious issues with the Java 7 GA release, Oracle released Update 1 of Java 7 yesterday. The first thing, of course, was to check the release notes, download the package, and finally run our Lucene test cases. When inspecting the download page and release notes on the Oracle web site, I got confused: The new release is Java 7u1, in contrast the developer preview released one week ago named Java 7u2 Developer Preview. Both builds have the same build number (b08). More strange is: The release notes of the developer preview differ from the release notes on the Update 1 release:
  • The official Update 1 release notes only list one bug of the three ones originally reported to Oracle: #7068051 (SIGSEGV in PhaseIdealLoop::build_loop_late_post on T5440). The other ones are not listed, so we cannot be sure that they are really fixed.
  • The famous SIGSEGV bug in Porter Stemmer (#7070134) is not listed at all, it also disappeared from the Oracle issue tracker. It seems like hidden to the public (maybe they declared it as confidental because it's security related???).

No matter what release notes say - I had to download the offical release package! I took some free time on the Lucene Eurocon Conference in Barcelona, downloaded the packages and installed them in parallel on my Windows 64bit Thinkpad. First I tried to run the Porter Stemmer test with 100 iterations on Java 7 GA, and verified that it crashed. Robert Muir joined and we tested the new U1 release: Test passes! This means, Hotspot issue #7070134 was fixed, but Oracle missed to put it into the release notes.

The second part of the investigations were more complicated: The index corru(m)ption bugs are more complicated to reproduce, as the virtual machine does not crash and simply produces corrupt indexes after merging segments in one of the facetting tests. We checked out the Lucene Trunk revision of the time, when the bug was first discovered (issue LUCENE-3346) and used the random seed mentioned on the issue. We were able to verify the bug with Java 7 GA (the indexes are corrupt 90% of the time), and luckily after 20 iterations of the same test and random seed in Java 7u1, we have seen no corrupt index! It seemed to us that Oracle maybe fixed Java issues #7044738 and #7068051, but missed to put both of them into the release notes. Of course, without an additional statement from Oracle, we cannot be sure, that the issues are really fixed!

Oracle also released Java 6 Update 29 yesterday. The release notes on that version doesn't mention any relation to the Lucene bugs, so we were not sure if this version is completely different to the Java 6u29 developer preview, released one week ago, which listed those bugs (unfortunately, the package is no longer available on the net), or if they also missed to mention them. A quick review as done for Java 7 showed, that Porter Stemmer no longer crashes with -XX:+AggressiveOpts, so the bug seems to be also fixed here, too. We were not able to actually discover any index corru(m)ption.

Finally, we can somehow verify that the bugs seem to be fixed for both versions, but without an official statement from Oracle (in their release notes), we cannot recommend to use Java 7u1 (and Java 6u29 with aggressive opts) with Lucene and Solr.

Once I will be back in Germany, I will try to get an updated FreeBSD package of Java 7 and install it on our Apache Jenkins server.

Update (2011-10-26)

Last night, Oracle updated the release notes of Java 7u1 and Java 6u29, stating that they fixed the three Lucene-relevant bugs (plus another one related to that). Based on this confirmation, it's now safe to use Java 7 Update 1 (and later) with Apache Lucene and Apache Solr.

Of course, there is still the recommendation not to use -XX:+AggressiveOpts on any JVM in production!

We are still waiting for updated OpenJDK packages to install this release on our build servers.

30 comments:

  1. So I was tired and irritable this morning and so I apologise for my tone in advance, you caught me on a bad day :( http://java.dzone.com/news/java-7-and-lucene-bug-saga#comment-57801 - Can't the Lucene folks work with the Oracle engineers on this via the appropriate mailing lists? It really does seem like there's 'point scoring' going on from both sides at times, it doesn't help anyone.

    ReplyDelete
  2. Martijn, its not clear oracle wants to work with us. Perhaps they prefer to hide bugs (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7070134 <-- why is this hidden now!) rather than fix them.

    ReplyDelete
  3. Hi, I my name is Donald Smith and I work in the Java SE PM team. I'm based in Ottawa, Canada.

    Based on feedback, we've updated the release notes for 7u1 [1] to confirm:
    = = = =
    JIT and Loop Bugs

    Three bugs reported by various parties, including Apache Lucene developers, have been fixed in JDK 7 Update 1, in addition to a fourth related bug found by Oracle (7070134, 7068051, 7044738, 7077439).
    = = = =

    [1] - http://www.oracle.com/technetwork/java/javase/7u1-relnotes-507962.html

    ReplyDelete
  4. ...and 6u29, of course.

    http://www-content.oracle.com/technetwork/java/javase/6u29-relnotes-507960.html

    ReplyDelete
  5. Thank you, Donald! I'll update the blog post and add a "UPDATE" note at the end.

    ReplyDelete
  6. 1z0-1066 Exam Dumps Simply make sure your grip on the IT braindumps devised the industry’s best IT professionals and get a 100% guaranteed success in Exam.

    ReplyDelete
  7. thanks for this information i like this HD Filme

    ReplyDelete

  8. I was curious if you ever considered changing the layout of your site? Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having one or two pictures. Maybe you could space it out bette

    My web site - 출장안마
    (jk)

    ReplyDelete
  9. I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information?


    스포츠중계
    스포츠토토티비

    ReplyDelete
  10. Great article and excellent layout. Your blog post deserves all of the positive feedback it’s been getting.


    토토
    사설토토

    ReplyDelete
  11. I thank you for this meditating content.Please update more.




    카지노사이트홈
    카지노사이트

    ReplyDelete
  12. 온라인카지노사이트
    온라인카지노



    Your post is an excellent example of why I keep coming back to read your amazing and high quality content.

    ReplyDelete
  13. Wow, incredible blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is excellent, as well as the content! 일본야동

    Please visit once. I leave my blog address below
    한국야동
    일본야동

    ReplyDelete
  14. Casino Near Me - MapyRO
    Casino 안성 출장샵 near 의정부 출장안마 me. The map provides a detailed, detailed list of casinos with gaming space 고양 출장안마 in 전라북도 출장마사지 the state. 부산광역 출장안마 The map is free and accurate. It includes all the

    ReplyDelete
  15. Best Casinos in Las Vegas for Real Money (2021 Update)
    The best online 광주 출장샵 casinos in Vegas for real money are Ignition Casino, an online 광주 출장안마 casino that offers both new 순천 출장샵 and veteran 의정부 출장마사지 casino games and slots 계룡 출장샵

    ReplyDelete
  16. excellent post, very informative. I wonder why the other experts of this sector don’t notice this. You should continue your writing. I am confident, you have a huge readers’ base already!
    토토사이트
    온라인경마

    ReplyDelete
  17. It is in point of fact a nice and helpful piece of info. I’m happy that you shared this helpful info with us. Please stay us up to date like this. Thank you for sharing.
    majortotositepro2
    racesitepro2
    oncasinositenet2
    totopickpro2

    ReplyDelete





  18. Werte Kundschaft, leider müssen wir aufgrund der aktuellen Geschehnisse eine Preiskorrektur vornehmen. Bis zum 28.06. haben Sie noch die Gelegenheit, alle unsere Produkte zum alten Preis zu bestellen. Mülltonnenverkleidung

    ReplyDelete





  19. Ihr mobiles und zuverlässiges Testcenter in Berlin & Umgebung | Unser mobiler Container für die geforderten To Go-Tests ist schnell aufgebaut und vermittelt Ihren Besuchern oder Mitarbeitern Sicherheit. Test to go Berlin





    ReplyDelete






  20. Visumland Konsularservice Berlin ist ein mittelständisches Dienstleis

    ReplyDelete






  21. Visumland Konsularservice Berlin ist ein mittelständisches Dienstleistungsunternehmen, das sich auf die Visabeschaffung sowie die Legalisierung von Dokumenten spezialisiert hat. Visumland

    ReplyDelete






  22. Hauptstadtgold in Berlin Tempelhof ist Ihr kompetenter Goldankäufer und Juwelier und gehört aufgrund seiner langjährigen Branchenerfahrung seit 1970 zu den etabliertesten Goldankäufern in Berlin. HauptstadtGold

    ReplyDelete
  23. I've been troubled for several days with this topic. slotsite, But by chance looking at your post solved my problem! I will leave my blog, so when would you like to visit it?

    ReplyDelete





  24. Unser Restaurant Maestral gegenüber dem Rathaus Reinickendorf bietet die perfekte Location, um Ihre Veranstaltung zu feiern.Komfort und gemütliches Ambiente zeichnen unsere Räumlichkeiten aus. Maestral Berlin



    ReplyDelete

  25. Wir begrüßen Sie herzlich auf unserer Internetseite bei Albatros Umzüge Berlin. Schön, dass Sie uns besuchen. Auf unserer Internetseite finden Sie alle notwendigen Informationen und unsere Angebote rund um das Thema Umzug. Dabei sollen unsere Anfrage-Formulare Sie unterstützen und den Kontakt mit uns vereinfachen. Umzugsunternehmen

    ReplyDelete
  26. Hey There. I found your blog about Java 7 Update. This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely return. assignment help edinburgh

    ReplyDelete
  27. Make your style more like Wednesday by purchasing this Jenna Ortega Wednesday Backpack from Jacket-Hub. High-quality materials were used to make this backpack. Visit Jacket-Hub to purchase complete outfits from the Wednesday series if you want to dress like Wednesday.

    ReplyDelete
  28. Anyone who enjoys the clothing worn by the cast of the new TV show Emily in Paris S03 should go to Jacketoria and buy this Emily In Paris Camille White And Black Jacket. Get yours now because this jacket is the best option.

    ReplyDelete
  29. floral shirt is a shirt with a floral print. It is a stylish shirt that can be worn to work or to a casual event. The shirt is made of a comfortable cloth that will keep you cool in the summer heat. The shirt is also versatile and can be worn with a variety of outfits. Glass Onion: A Knives Out Mystery Dave Bautista Floral Shirt

    ReplyDelete