3 Replies Latest reply on Aug 13, 2011 4:16 AM by Adam Warski

    Envers fails during Load Tests, missing REVEND on certain audit entries

    benpoole Newbie

      Hi,

       

      We are using Hibernate 3.6.5.Final, EntityManager 3.6.5.Final and Envers 3.6.5.Final with the ValidityAuditStrategy.

       

      When testing creating new entities at a load of around 5/10 hits per second, after around 1 minute the REVEND column on certain rows of associated AUD tables fails to populate. This then throws a "Cannot find previous revision for entity" next time the entity is used.

       

      Could this be a conflict while different threads are reading/writing to the AUD table?

      Can Envers perform some kind of locking to prevent this?

       

      Any help would be much appreciated.

       

      Regards

       

      Ben