[hibernate/hibernate-orm] eb66fe: HHH-7251 PostgreSQL dialects now convert proper Hi...
by GitHub
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-orm
Commit: eb66fed9769cf7c70b0ab4eb7478543f53c43fd1
https://github.com/hibernate/hibernate-orm/commit/eb66fed9769cf7c70b0ab4e...
Author: Bryan Varner <bryan(a)varnernet.com>
Date: 2012-05-02 (Wed, 02 May 2012)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQL81Dialect.java
Log Message:
-----------
HHH-7251 PostgreSQL dialects now convert proper HibernateExceptions for Deadlock / lock timeout (not available with NOWAIT query).
Commit: 089a36a260ab0be0805c0d1f1b5500f7e1460755
https://github.com/hibernate/hibernate-orm/commit/089a36a260ab0be0805c0d1...
Author: Bryan Varner <bryan(a)varnernet.com>
Date: 2012-05-02 (Wed, 02 May 2012)
Changed paths:
M hibernate-entitymanager/src/main/java/org/hibernate/ejb/AbstractEntityManagerImpl.java
Log Message:
-----------
HHH-7252
The code was a bit non-obvious (assignment in a method call argument) where it was being done, and the local variable (lockOptions) assignment was missing in the find() method implementation.
I changed all instances of lockOptions assignment to assign before the method call where it's required as an argument, ensuring proper scope for exception mapping.
Commit: d28cb4c39f7d4b17043dbd6ac07f91bdb3eefaa5
https://github.com/hibernate/hibernate-orm/commit/d28cb4c39f7d4b17043dbd6...
Author: Bryan Varner <bryan(a)varnernet.com>
Date: 2012-05-02 (Wed, 02 May 2012)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/dialect/PostgreSQL81DialectTestCase.java
Log Message:
-----------
Added a test case for HHH-7251
Commit: 327002ab02a72eb4fe5de175b79232273ebb2af1
https://github.com/hibernate/hibernate-orm/commit/327002ab02a72eb4fe5de17...
Author: Bryan Varner <bryan(a)varnernet.com>
Date: 2012-05-02 (Wed, 02 May 2012)
Changed paths:
M hibernate-entitymanager/src/matrix/java/org/hibernate/ejb/test/lock/LockTest.java
M hibernate-testing/src/main/java/org/hibernate/testing/DialectChecks.java
Log Message:
-----------
Adding a test case for HHH-7252. In this branch, the test case currently fails for PostgreSQL matrix tests, unless HHH-7251 is also applied.
Commit: c1849d56f64e6c835a7ee901934be52fadef92d8
https://github.com/hibernate/hibernate-orm/commit/c1849d56f64e6c835a7ee90...
Author: Bryan Varner <bryan(a)varnernet.com>
Date: 2012-05-02 (Wed, 02 May 2012)
Changed paths:
M hibernate-entitymanager/src/matrix/java/org/hibernate/ejb/test/lock/LockTest.java
Log Message:
-----------
Changing the test case to no longer fail when PersistenceException is thrown. This feels sooo wrong.
I know dialects aren't mapping lock exceptions properly, and this test case exposes that if you fail the test when PersistenceException is thrown. So what do I do now?
There are other tests in this very test class that don't fail the build when the wrong exception is thrown, even though they clearly should.
Commit: cb1c4857748b0a7cae18610f17d0367b84475090
https://github.com/hibernate/hibernate-orm/commit/cb1c4857748b0a7cae18610...
Author: Bryan Varner <bryan(a)varnernet.com>
Date: 2012-05-02 (Wed, 02 May 2012)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java
M hibernate-entitymanager/src/matrix/java/org/hibernate/ejb/test/lock/LockTest.java
Log Message:
-----------
Yes, much cleaner...
Commit: 5c0d4490827bff0cc59cc249d157a04d996e5b36
https://github.com/hibernate/hibernate-orm/commit/5c0d4490827bff0cc59cc24...
Author: Bryan Varner <bryan(a)varnernet.com>
Date: 2012-05-02 (Wed, 02 May 2012)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQL81Dialect.java
M hibernate-entitymanager/src/matrix/java/org/hibernate/ejb/test/lock/LockTest.java
Log Message:
-----------
Cleaned up the dialect error conversion a little bit for PostgresSQL. I was doing more than I needed to.
Updated the LockTest to enable another nowait test for postgresql.
Commit: 8b40d71c84c072c134e2111729a4e36283867b3a
https://github.com/hibernate/hibernate-orm/commit/8b40d71c84c072c134e2111...
Author: Bryan Varner <bryan(a)varnernet.com>
Date: 2012-05-02 (Wed, 02 May 2012)
Changed paths:
M hibernate-entitymanager/src/matrix/java/org/hibernate/ejb/test/lock/LockTest.java
Log Message:
-----------
Renamed the test case to be more consistent.
Compare: https://github.com/hibernate/hibernate-orm/compare/0bca4ab...8b40d71
12 years, 7 months
[hibernate/hibernate-orm] 3a5b23: HHH-7265 : ConcurrentModificationException in Sync...
by GitHub
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-orm
Commit: 3a5b2311871cd073715c1d100cdb52a385febc8e
https://github.com/hibernate/hibernate-orm/commit/3a5b2311871cd073715c1d1...
Author: Gail Badner <gbadner(a)redhat.com>
Date: 2012-05-02 (Wed, 02 May 2012)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
M hibernate-entitymanager/src/main/java/org/hibernate/ejb/EntityManagerFactoryImpl.java
M hibernate-entitymanager/src/main/java/org/hibernate/ejb/EntityManagerImpl.java
M hibernate-entitymanager/src/matrix/java/org/hibernate/ejb/test/transaction/TransactionJoiningTest.java
Log Message:
-----------
HHH-7265 : ConcurrentModificationException in SynchronizationRegistryImpl.notifySynchronizationsAfterTransactionCompletion
Commit: 48665213ff1efba8127e9a451372fdfb7aa425e8
https://github.com/hibernate/hibernate-orm/commit/48665213ff1efba8127e9a4...
Author: Gail Badner <gbadner(a)redhat.com>
Date: 2012-05-02 (Wed, 02 May 2012)
Changed paths:
A hibernate-core/src/main/java/org/hibernate/SessionOwner.java
A hibernate-core/src/main/java/org/hibernate/engine/spi/SessionBuilderImplementor.java
Log Message:
-----------
HHH-7265 : added SessionOwner and SessionBuilderImplementor
Commit: 23aa8875d804f5caeb2faa55b8cfd52eee3534ab
https://github.com/hibernate/hibernate-orm/commit/23aa8875d804f5caeb2faa5...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2012-05-02 (Wed, 02 May 2012)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/SessionBuilder.java
R hibernate-core/src/main/java/org/hibernate/SessionOwner.java
M hibernate-core/src/main/java/org/hibernate/SharedSessionBuilder.java
M hibernate-core/src/main/java/org/hibernate/engine/spi/SessionBuilderImplementor.java
M hibernate-core/src/main/java/org/hibernate/engine/spi/SessionFactoryImplementor.java
A hibernate-core/src/main/java/org/hibernate/engine/spi/SessionOwner.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
M hibernate-entitymanager/src/main/java/org/hibernate/ejb/EntityManagerImpl.java
Log Message:
-----------
HHH-7265 - ConcurrentModificationException in SynchronizationRegistryImpl.notifySynchronizationsAfterTransactionCompletion due to SynchronizationRegistryImpl.clearSynchronizations clearing SynchronizationRegistryImpl.synchronizations
Compare: https://github.com/hibernate/hibernate-orm/compare/a495479...23aa887
12 years, 7 months