-->
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.  [ 4 posts ] 
Author Message
 Post subject: hibernate 5 increased Rollback operations
PostPosted: Wed Feb 01, 2017 6:40 pm 
Newbie

Joined: Wed Feb 01, 2017 6:28 pm
Posts: 2
Hello All,

I have a spring 3/hibernate 4 applications that has been running for couple of years. In the past month upgraded to spring 4 and hibernate 5 with no code changes. Of course, functionality tests have been performed for regression. However, after the release it appears that database is receiving more "rollback" operations than before the upgrade. We have then downgraded back to hibernate 4 (while leaving spring and other intact). Wonder where to start to find out what is causing this. Most of these rollback operations are coming from mostly "Select" calls. Thanks.


Top
 Profile  
 
 Post subject: Re: hibernate 5 increased Rollback operations
PostPosted: Thu Feb 02, 2017 7:13 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
You should investigate what triggers the rollback. Usually, it is a failure on the database side that triggers a rollback, like a constraint violation or an optimistic lock exception. Try finding the reason for the rollback. Otherwise, it's impossible to tell what's to be done.


Top
 Profile  
 
 Post subject: Re: hibernate 5 increased Rollback operations
PostPosted: Thu Feb 02, 2017 10:48 am 
Newbie

Joined: Wed Feb 01, 2017 6:28 pm
Posts: 2
Thanks for the response. After investigating with DBA, it appears application is triggering the rollback. When switched back to hibernate 4 it doesn't anymore. I am using hibernate 5.1.2.


Top
 Profile  
 
 Post subject: Re: hibernate 5 increased Rollback operations
PostPosted: Thu Feb 02, 2017 11:21 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
Maybe, it's a Spring issue. You must use a Spring version that's compatible with Hibernate 5.1.2.


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

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.