-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: MultipleHiLoPerTableGenerator, Oracle and cluster not unique
PostPosted: Mon Jun 23, 2008 10:32 am 
Newbie

Joined: Mon Oct 30, 2006 10:51 am
Posts: 3
Hi all,

I'm using Hibernate 3.1rc2 on JBoss4.0.3sp1 (the version delivered with JBoss 4.0.3sp1) with a two node jboss cluster with Oracle 10g as database.
Using the MultipleHiLoPerTableGenerator, I found in some rare cases two lines with the same sequence_name in the hibernate_sequences table, and even worse, I ran into constraint violations of the primary key constraint of the table whose name occurred twice in the hibernate_sequences table.
Investigating the problem in more detail, I saw that this happenend because the same action was done on both cluster nodes nearly exactly at the same time.
Looking at the last example on page http://www.oracle.com/technology/oramag/oracle/05-nov/o65asktom.html, IMO this is a problem that can not be solved with Oracle.
A possible workaround of course would be to insert all required rows in the hibernate_sequences table before application startup, but the problem reamins IMO when the two cluster nodes accidentially increase their sequence number at the same time.

Is this a known issue, and if so, is there a solution for it?
Or is my understanding of the case not correct?

Regards,
Martin[/url]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.