|
From: Juergen H. <ju...@in...> - 2005-03-20 16:20:22
|
Thomas, everybody, We've decided to have DeadlockLoserDataAccessException as a subclass of ConcurrencyFailureException in the meantime, but it's still unclear whether that MySQL error mentioned in SPR-733 should actually be translated to a CannotAcquireLockException or DeadlockLoserDataAccessException. The problem is that the exact semantics of those two exceptions are somewhat unclear... We currently throw CannotAcquireLockException in all such cases for other databases, so it would make sense to do this for that MySQL error too. But why does DeadlockLoserDataAccessException exist at all then? It currently isn't used anywhere ... Can we discrimate between a general "cannot acquire lock" error and the specific situation of the current process being a "deadlock loser"? Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Juergen Hoeller Sent: Tuesday, February 22, 2005 1:12 PM To: spr...@li... Subject: [Springframework-developer] DeadlockLoserDataAccessException vs CannotAcquireLockException Thomas, everybody, Please have a look at the following JIRA issue: http://opensource.atlassian.com/projects/spring/browse/SPR-733 I agree that DeadlockLoserDataAccessException should be a subclass of ConcurrencyFailureException (which has been introduced in Spring 1.1), and have already changed this locally. However, DeadlockLoserDataAccessException isn't thrown anywhere; SQLErrorCodes does not support it. So as indicated in SPR-733, should we generally throw CannotAcquireLockException in such a case (which currently seems to happen for some databases, as defined in sql-error-codes.xml)? What's the semantic difference between those two exceptions, and is it worth keeping both? Juergen ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |