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: Values sometimes not written to DB,even after immediate flus
PostPosted: Thu Jul 07, 2011 11:01 am 
Newbie

Joined: Wed Apr 04, 2007 5:02 pm
Posts: 3
hey guys

I know my issue must sound ridiculous, but I am facing that same issue for quite some time now. I basically did all I could to avoid it. By all I could, I mean more or less hacks. Like special "did hib really save the changes" checks. I ridiculously often flush the session. But sometimes a property value is simply not written to the database. Not even delayed. And it mostly happens in heavy load production environment. Locally it doesnt happen at all. Also it occurs in unit tests from time to time... Totally random.
I am using the HibernateSupport classes from Spring, but I have a hard time believing that being related to the issue...

I'm clueless.

Anyone with an idea out there?

My Setup :

DB: Oracle 11g
Hib: 3.6
AppServer: Tomcat (5-7)
Spring 3.0.5

Conf:
Code:
               
<prop key="hibernate.dialect">com.mydomain.common.hibernate.FixedOracleDialect</prop>
<prop key="hibernate.hbm2ddl.auto">validate</prop>
<prop key="hibernate.show.sql">${testing}</prop>
<prop key="hibernate.current_session_context_class">thread</prop>
<prop key="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</prop>
<prop key="hibernate.generate_statistics">${testing}</prop>
<prop key="hibernate.cache.provider_class">com.mydomain.common.hibernate.ExternalEhCacheProvider</prop>
<prop key="hibernate.cache.use_query_cache">true</prop>
<prop key="hibernate.cache.region_prefix"></prop>
<prop key="hibernate.cache.use_second_level_cache">true</prop>
<prop key="hibernate.cache.use_structured_entries">true</prop>
<prop key="hibernate.bytecode.use_reflection_optimizer">true</prop>


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.