# Fwd: \[hibernate-announce\] Java 7 and Hibernate Search

**URL:** <https://discuss.elastic.co/t/fwd-hibernate-announce-java-7-and-hibernate-search/4996>\
**Category:** Elasticsearch\
**Created:** [July 29, 2011, 8:09am UTC](https://discuss.elastic.co/t/fwd-hibernate-announce-java-7-and-hibernate-search/4996 "2011-07-29T08:09:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 29, 2011, 8:09am UTC](https://discuss.elastic.co/t/fwd-hibernate-announce-java-7-and-hibernate-search/4996/1 "2011-07-29T08:09:54Z")

</div>

Do we will have the sames issues with ES ?

David 😉

Début du message transféré :

> Expéditeur: Emmanuel Bernard [emmanuel@hibernate.org](mailto:emmanuel@hibernate.org)  
> Date: 29 juillet 2011 09:35:46 HAEC  
> Destinataire: [hibernate-announce@lists.jboss.org](mailto:hibernate-announce@lists.jboss.org)  
> Objet: [hibernate-announce] Java 7 and Hibernate Search

> Hi everyone,
> 
> A severe optimization bug in Java 7 is affecting the Apache Lucene project which is heavily used by Hibernate Search. If you are using any version of Hibernate Search and contemplate using Java 7, please read.
> 
> In one line: do not use or you might get index corruption and VM crashes.
> 
> Some details
> 
> - a loop optimization bug is present in Java 7
> - it can lead to either crash or index corruption when running Hibernate Search
> - Oracle is aware of the problem and is working for a fix for update 2 (and maybe update 1)
> - this bug also affect Java 6 VMs assuming you use some VM optimization options (-XX:+OptimizeStringConcat or  
> -XX:+AggressiveOpts)
> 
> A very nice and detailed explanation of the problem by Uwe from Lucene fame can be found at [http://markmail.org/thread/kulrw4sm2nsshrta](http://markmail.org/thread/kulrw4sm2nsshrta)
> 
> We are tracking the problem at [https://hibernate.onjira.com/browse/HSEARCH-820](https://hibernate.onjira.com/browse/HSEARCH-820)
> 
> Emmanuel
> 
> PS: many kudos to the Lucene community for being so open and reactive
> 
> * * *
> 
> hibernate-announce mailing list  
> [hibernate-announce@lists.jboss.org](mailto:hibernate-announce@lists.jboss.org)  
> [hibernate-announce - Jboss List Archives](https://lists.jboss.org/mailman/listinfo/hibernate-announce)

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 29, 2011, 8:11am UTC](https://discuss.elastic.co/t/fwd-hibernate-announce-java-7-and-hibernate-search/4996/2 "2011-07-29T08:11:43Z")

</div>

Heya,

Yea, I was just writing this email to the mailing list as well... . Note,  
the index corruption only affects Lucene trunk.

-shay.banon

On Fri, Jul 29, 2011 at 11:09 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Do we will have the sames issues with ES ?
> 
> David 😉
> 
> Début du message transféré :
> 
> _Expéditeur:_ Emmanuel Bernard [emmanuel@hibernate.org](mailto:emmanuel@hibernate.org)  
> _Date:_ 29 juillet 2011 09:35:46 HAEC  
> _Destinataire:_ [hibernate-announce@lists.jboss.org](mailto:hibernate-announce@lists.jboss.org)  
> [hibernate-announce@lists.jboss.org](mailto:hibernate-announce@lists.jboss.org)  
> _Objet:_ _[hibernate-announce] Java 7 and Hibernate Search_
> 
> Hi everyone,
> 
> A severe optimization bug in Java 7 is affecting the Apache Lucene project  
> which is heavily used by Hibernate Search. If you are using any version of  
> Hibernate Search and contemplate using Java 7, please read.
> 
> In one line: do not use or you might get index corruption and VM crashes.
> 
> Some details
> 
> - a loop optimization bug is present in Java 7
> - it can lead to either crash or index corruption when running Hibernate  
> Search
> - Oracle is aware of the problem and is working for a fix for update 2 (and  
> maybe update 1)
> - this bug also affect Java 6 VMs assuming you use some VM optimization  
> options (-XX:+OptimizeStringConcat or  
> -XX:+AggressiveOpts)
> 
> A very nice and detailed explanation of the problem by Uwe from Lucene fame  
> can be found at [http://markmail.org/thread/kulrw4sm2nsshrta](http://markmail.org/thread/kulrw4sm2nsshrta)  
> [http://markmail.org/thread/kulrw4sm2nsshrta](http://markmail.org/thread/kulrw4sm2nsshrta)
> 
> We are tracking the problem at  
> [https://hibernate.onjira.com/browse/HSEARCH-820](https://hibernate.onjira.com/browse/HSEARCH-820)  
> [https://hibernate.onjira.com/browse/HSEARCH-820](https://hibernate.onjira.com/browse/HSEARCH-820)
> 
> Emmanuel
> 
> PS: many kudos to the Lucene community for being so open and reactive
> 
> * * *
> 
> hibernate-announce mailing list  
> [hibernate-announce@lists.jboss.org](mailto:hibernate-announce@lists.jboss.org)  
> [hibernate-announce - Jboss List Archives](https://lists.jboss.org/mailman/listinfo/hibernate-announce)

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [July 29, 2011, 8:16am UTC](https://discuss.elastic.co/t/fwd-hibernate-announce-java-7-and-hibernate-search/4996/3 "2011-07-29T08:16:19Z")

</div>

Hey Shay,  
Does it mean that ES versions based on Lucene 3.3 does not suffer no matter  
which JVM version they are running on?  
Rgds,  
Lukas  
Dne 29.7.2011 10:12 "Shay Banon" [kimchy@gmail.com](mailto:kimchy@gmail.com) napsal(a):

> Heya,
> 
> Yea, I was just writing this email to the mailing list as well... . Note,  
> the index corruption only affects Lucene trunk.
> 
> -shay.banon
> 
> On Fri, Jul 29, 2011 at 11:09 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Do we will have the sames issues with ES ?
> > 
> > David 😉
> > 
> > Début du message transféré :
> > 
> > _Expéditeur:_ Emmanuel Bernard [emmanuel@hibernate.org](mailto:emmanuel@hibernate.org)  
> > _Date:_ 29 juillet 2011 09:35:46 HAEC  
> > _Destinataire:_ [hibernate-announce@lists.jboss.org](mailto:hibernate-announce@lists.jboss.org)  
> > [hibernate-announce@lists.jboss.org](mailto:hibernate-announce@lists.jboss.org)  
> > _Objet:_ _[hibernate-announce] Java 7 and Hibernate Search_
> > 
> > Hi everyone,
> > 
> > A severe optimization bug in Java 7 is affecting the Apache Lucene  
> > project  
> > which is heavily used by Hibernate Search. If you are using any version  
> > of  
> > Hibernate Search and contemplate using Java 7, please read.
> > 
> > In one line: do not use or you might get index corruption and VM crashes.
> > 
> > Some details
> > 
> > - a loop optimization bug is present in Java 7
> > - it can lead to either crash or index corruption when running Hibernate  
> > Search
> > - Oracle is aware of the problem and is working for a fix for update 2  
> > (and  
> > maybe update 1)
> > - this bug also affect Java 6 VMs assuming you use some VM optimization  
> > options (-XX:+OptimizeStringConcat or  
> > -XX:+AggressiveOpts)
> > 
> > A very nice and detailed explanation of the problem by Uwe from Lucene  
> > fame  
> > can be found at [http://markmail.org/thread/kulrw4sm2nsshrta](http://markmail.org/thread/kulrw4sm2nsshrta)  
> > [http://markmail.org/thread/kulrw4sm2nsshrta](http://markmail.org/thread/kulrw4sm2nsshrta)
> > 
> > We are tracking the problem at  
> > [https://hibernate.onjira.com/browse/HSEARCH-820](https://hibernate.onjira.com/browse/HSEARCH-820)  
> > [https://hibernate.onjira.com/browse/HSEARCH-820](https://hibernate.onjira.com/browse/HSEARCH-820)
> > 
> > Emmanuel
> > 
> > PS: many kudos to the Lucene community for being so open and reactive
> > 
> > * * *
> > 
> > hibernate-announce mailing list  
> > [hibernate-announce@lists.jboss.org](mailto:hibernate-announce@lists.jboss.org)  
> > [hibernate-announce - Jboss List Archives](https://lists.jboss.org/mailman/listinfo/hibernate-announce)

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 29, 2011, 8:18am UTC](https://discuss.elastic.co/t/fwd-hibernate-announce-java-7-and-hibernate-search/4996/4 "2011-07-29T08:18:36Z")

</div>

There is definitely a problem with the porter stemmer (sigserv), my comment  
was about index corruption.

On Fri, Jul 29, 2011 at 11:16 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com) wrote:

> Hey Shay,  
> Does it mean that ES versions based on Lucene 3.3 does not suffer no matter  
> which JVM version they are running on?  
> Rgds,  
> Lukas  
> Dne 29.7.2011 10:12 "Shay Banon" [kimchy@gmail.com](mailto:kimchy@gmail.com) napsal(a):
> 
> > Heya,
> > 
> > Yea, I was just writing this email to the mailing list as well... . Note,  
> > the index corruption only affects Lucene trunk.
> > 
> > -shay.banon
> > 
> > On Fri, Jul 29, 2011 at 11:09 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > Do we will have the sames issues with ES ?
> > > 
> > > David 😉
> > > 
> > > Début du message transféré :
> > > 
> > > _Expéditeur:_ Emmanuel Bernard [emmanuel@hibernate.org](mailto:emmanuel@hibernate.org)  
> > > _Date:_ 29 juillet 2011 09:35:46 HAEC  
> > > _Destinataire:_ [hibernate-announce@lists.jboss.org](mailto:hibernate-announce@lists.jboss.org)  
> > > [hibernate-announce@lists.jboss.org](mailto:hibernate-announce@lists.jboss.org)  
> > > _Objet:_ _[hibernate-announce] Java 7 and Hibernate Search_
> > > 
> > > Hi everyone,
> > > 
> > > A severe optimization bug in Java 7 is affecting the Apache Lucene  
> > > project  
> > > which is heavily used by Hibernate Search. If you are using any version  
> > > of  
> > > Hibernate Search and contemplate using Java 7, please read.
> > > 
> > > In one line: do not use or you might get index corruption and VM  
> > > crashes.
> > > 
> > > Some details
> > > 
> > > - a loop optimization bug is present in Java 7
> > > - it can lead to either crash or index corruption when running Hibernate  
> > > Search
> > > - Oracle is aware of the problem and is working for a fix for update 2  
> > > (and  
> > > maybe update 1)
> > > - this bug also affect Java 6 VMs assuming you use some VM optimization  
> > > options (-XX:+OptimizeStringConcat or  
> > > -XX:+AggressiveOpts)
> > > 
> > > A very nice and detailed explanation of the problem by Uwe from Lucene  
> > > fame  
> > > can be found at [http://markmail.org/thread/kulrw4sm2nsshrta](http://markmail.org/thread/kulrw4sm2nsshrta)  
> > > [http://markmail.org/thread/kulrw4sm2nsshrta](http://markmail.org/thread/kulrw4sm2nsshrta)
> > > 
> > > We are tracking the problem at  
> > > [https://hibernate.onjira.com/browse/HSEARCH-820](https://hibernate.onjira.com/browse/HSEARCH-820)  
> > > [https://hibernate.onjira.com/browse/HSEARCH-820](https://hibernate.onjira.com/browse/HSEARCH-820)
> > > 
> > > Emmanuel
> > > 
> > > PS: many kudos to the Lucene community for being so open and reactive
> > > 
> > > * * *
> > > 
> > > hibernate-announce mailing list  
> > > [hibernate-announce@lists.jboss.org](mailto:hibernate-announce@lists.jboss.org)  
> > > [hibernate-announce - Jboss List Archives](https://lists.jboss.org/mailman/listinfo/hibernate-announce)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:58am UTC](https://discuss.elastic.co/t/fwd-hibernate-announce-java-7-and-hibernate-search/4996/5 "2017-07-06T03:58:52Z")

</div>


