[JIRA] (HHH-16275) LockTest.testLock*FkTarget fail on Sybase with timeout getting lock
by Martin Simka (JIRA)
Martin Simka ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%... ) *created* an issue
Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNWRmYTZiZGY5... ) / Bug ( https://hibernate.atlassian.net/browse/HHH-16275?atlOrigin=eyJpIjoiNWRmYT... ) HHH-16275 ( https://hibernate.atlassian.net/browse/HHH-16275?atlOrigin=eyJpIjoiNWRmYT... ) LockTest.testLock*FkTarget fail on Sybase with timeout getting lock ( https://hibernate.atlassian.net/browse/HHH-16275?atlOrigin=eyJpIjoiNWRmYT... )
Issue Type: Bug Affects Versions: 6.2.0.CR3 Assignee: Unassigned Components: testsuite Created: 09/Mar/2023 05:30 AM Environment: Hibernate ORM 6.2.0.CR3 + Sybase 16.0 + Sybase JDBC driver (jConnect (TM) for JDBC(TM)/16.0 SP04 PL03 (Build 27544) + extra connection parameters: `SQLINITSTRING=set quoted_identifier on&SQLINITSTRING=set ansinull on` Priority: Major Reporter: Martin Simka ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%... )
org.hibernate.orm.test.jpa.lock.LockTest.testLockInsertFkTarget
org.hibernate.orm.test.jpa.lock.LockTest.testLockUpdateFkTarget
jakarta.persistence.RollbackException: Error while committing the transaction
at app//org.hibernate.internal.ExceptionConverterImpl.convertCommitException(ExceptionConverterImpl.java:65)
at app//org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:104)
at app//org.hibernate.testing.transaction.TransactionUtil.doInJPA(TransactionUtil.java:260)
at app//org.hibernate.testing.transaction.TransactionUtil.doInJPA(TransactionUtil.java:299)
at app//org.hibernate.orm.test.jpa.lock.LockTest.lambda$testLockInsertFkTarget$79(LockTest.java:1193)
at app//org.hibernate.testing.transaction.TransactionUtil.doInJPA(TransactionUtil.java:258)
at app//org.hibernate.testing.transaction.TransactionUtil.doInJPA(TransactionUtil.java:299)
at app//org.hibernate.orm.test.jpa.lock.LockTest.testLockInsertFkTarget(LockTest.java:1188)
at java.base(a)11.0.16/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base@11.0.16/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base@11.0.16/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base@11.0.16/java.lang.reflect.Method.invoke(Method.java:566)
at app//org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at app//org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at app//org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at app//org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:45)
at app//org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at app//org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
at app//org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
at java.base@11.0.16/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base@11.0.16/java.lang.Thread.run(Thread.java:834)
Caused by: org.hibernate.exception.GenericJDBCException: could not execute statement [Could not acquire a lock within the specified wait period. SESSION level wait period=1 seconds, spid=452, lock type=shared row, dbid=11, objid=1390196427, pageno=873, rowno=0. Aborting the transaction.
] [insert into LockReference (lock_id,name,id) values (?,?,?)]
at app//org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:61)
at app//org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:108)
at app//org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:278)
at app//org.hibernate.engine.jdbc.mutation.internal.AbstractMutationExecutor.performNonBatchedMutation(AbstractMutationExecutor.java:98)
at app//org.hibernate.engine.jdbc.mutation.internal.MutationExecutorSingleNonBatched.performNonBatchedOperations(MutationExecutorSingleNonBatched.java:40)
at app//org.hibernate.engine.jdbc.mutation.internal.AbstractMutationExecutor.execute(AbstractMutationExecutor.java:43)
at app//org.hibernate.persister.entity.mutation.InsertCoordinator.doStaticInserts(InsertCoordinator.java:168)
at app//org.hibernate.persister.entity.mutation.InsertCoordinator.coordinateInsert(InsertCoordinator.java:110)
at app//org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2810)
at app//org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:102)
at app//org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:616)
at app//org.hibernate.engine.spi.ActionQueue.lambda$executeActions$1(ActionQueue.java:487)
at java.base@11.0.16/java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at app//org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:484)
at app//org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:358)
at app//org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39)
at app//org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:127)
at app//org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1412)
at app//org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:485)
at app//org.hibernate.internal.SessionImpl.flushBeforeTransactionCompletion(SessionImpl.java:2296)
at app//org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:1961)
at app//org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.beforeTransactionCompletion(JdbcCoordinatorImpl.java:426)
at app//org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.beforeCompletionCallback(JdbcResourceLocalTransactionCoordinatorImpl.java:169)
at app//org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:267)
at app//org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:101)
... 19 more
Caused by: com.sybase.jdbc4.jdbc.SybSQLException: Could not acquire a lock within the specified wait period. SESSION level wait period=1 seconds, spid=452, lock type=shared row, dbid=11, objid=1390196427, pageno=873, rowno=0. Aborting the transaction.
at app//com.sybase.jdbc4.tds.Tds.processEed(Tds.java:4237)
at app//com.sybase.jdbc4.tds.Tds.nextResult(Tds.java:3346)
at app//com.sybase.jdbc4.jdbc.ResultGetter.nextResult(ResultGetter.java:78)
at app//com.sybase.jdbc4.jdbc.SybStatement.nextResult(SybStatement.java:303)
at app//com.sybase.jdbc4.jdbc.SybStatement.nextResult(SybStatement.java:285)
at app//com.sybase.jdbc4.jdbc.SybStatement.updateLoop(SybStatement.java:2788)
at app//com.sybase.jdbc4.jdbc.SybStatement.executeUpdate(SybStatement.java:2772)
at app//com.sybase.jdbc4.jdbc.SybPreparedStatement.executeUpdate(SybPreparedStatement.java:335)
at app//org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:275)
... 41 more
( https://hibernate.atlassian.net/browse/HHH-16275#add-comment?atlOrigin=ey... ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-16275#add-comment?atlOrigin=ey... )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.... ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailN... ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:e5bf00f )
1 year, 10 months