Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1060

LockAcquisitionException during jdbc integration tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • jclouds-blobstore

    Description

      This appears to hang the test run:

      17771 [pool-9-thread-2] ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper  - transaction rollback: serialization failure
      unable to delete container gaul-blobstore9, ignoring...
      unable to delete container gaul-blobstore2951474358593827136, ignoring...
      javax.persistence.PersistenceException: org.hibernate.exception.LockAcquisitionException: could not extract ResultSet
              at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763)
              at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1677)
              at org.hibernate.jpa.internal.QueryImpl.getSingleResult(QueryImpl.java:524)
              at org.jclouds.jdbc.repository.ContainerRepository.findContainerByName(ContainerRepository.java:40)
              at org.jclouds.jdbc.service.JdbcService.findBlobsByContainer(JdbcService.java:167)
              at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:62)
              at org.jclouds.jdbc.service.JdbcService.deleteBlobsByContainer(JdbcService.java:188)
              at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:70)
              at org.jclouds.jdbc.strategy.JdbcStorageStrategy.deleteContainer(JdbcStorageStrategy.java:166)
              at org.jclouds.blobstore.config.LocalBlobStore.deleteAndVerifyContainerGone(LocalBlobStore.java:721)
              at org.jclouds.blobstore.config.LocalBlobStore.deleteContainer(LocalBlobStore.java:204)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:497)
              at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
              at com.sun.proxy.$Proxy48.deleteContainer(Unknown Source)
              at org.jclouds.blobstore.integration.internal.BaseBlobStoreIntegrationTest.deleteContainerOrWarnIfUnable(BaseBlobStoreIntegrationTest.java:188)
              at org.jclouds.blobstore.integration.internal.BaseBlobStoreIntegrationTest.access$1100(BaseBlobStoreIntegrationTest.java:69)
              at org.jclouds.blobstore.integration.internal.BaseBlobStoreIntegrationTest$11.run(BaseBlobStoreIntegrationTest.java:514)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: org.hibernate.exception.LockAcquisitionException: could not extract ResultSet
              at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:92)
              at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
              at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
              at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
              at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:91)
              at org.hibernate.loader.Loader.getResultSet(Loader.java:2066)
              at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1863)
              at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1839)
              at org.hibernate.loader.Loader.doQuery(Loader.java:910)
              at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:355)
              at org.hibernate.loader.Loader.doList(Loader.java:2554)
              at org.hibernate.loader.Loader.doList(Loader.java:2540)
              at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2370)
              at org.hibernate.loader.Loader.list(Loader.java:2365)
              at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:497)
              at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:387)
              at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:236)
              at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1300)
              at org.hibernate.internal.QueryImpl.list(QueryImpl.java:103)
              at org.hibernate.jpa.internal.QueryImpl.list(QueryImpl.java:573)
              at org.hibernate.jpa.internal.QueryImpl.getSingleResult(QueryImpl.java:495)
              ... 22 more
      Caused by: java.sql.SQLTransactionRollbackException: transaction rollback: serialization failure
              at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
              at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
              at org.hsqldb.jdbc.JDBCPreparedStatement.fetchResult(Unknown Source)
              at org.hsqldb.jdbc.JDBCPreparedStatement.executeQuery(Unknown Source)
              at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:82)
              ... 38 more
      Caused by: org.hsqldb.HsqlException: transaction rollback: serialization failure
              at org.hsqldb.error.Error.error(Unknown Source)
              at org.hsqldb.error.Error.error(Unknown Source)
              at org.hsqldb.Session.executeCompiledStatement(Unknown Source)
              at org.hsqldb.Session.execute(Unknown Source)
              ... 41 more
      

      Attachments

        Activity

          People

            gaul Andrew Gaul
            gaul Andrew Gaul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: