Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2717

Performance tests in sandbox running out of JDBC connections

    Details

    • Type: Task
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.8.0.Beta1, 5.8.0.Beta2
    • Fix Version/s: 5.8.0.Beta3
    • Component/s: tests
    • Labels:
      None

      Description

      The tests seem to fail when I run them locally.

      Either:

      • The test themselves or Hibernate Search is broken. This may have been the case for a while though, since running the tests on 5.8.0.Beta1 produces the same failures.
      • Or there is some setup required on machines executing the performance tests. If this is the case, they should be documented somewhere (in the README?).

      In any case, we must at least know what's going on before we release 5.8.

      I attached the test ouput. The relevant section:

      org.hibernate.HibernateException: The internal connection pool has reached its maximum size and no connection is currently available!
      	at org.hibernate.engine.jdbc.connections.internal.PooledConnections.poll(PooledConnections.java:82)
      	at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java:186)
      	at org.hibernate.internal.NonContextualJdbcConnectionAccess.obtainConnection(NonContextualJdbcConnectionAccess.java:35)
      	at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:99)
      	at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:129)
      	at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getConnectionForTransactionManagement(LogicalConnectionManagedImpl.java:247)
      	at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.begin(LogicalConnectionManagedImpl.java:254)
      	at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.begin(JdbcResourceLocalTransactionCoordinatorImpl.java:203)
      	at org.hibernate.engine.transaction.internal.TransactionImpl.begin(TransactionImpl.java:56)
      	at org.hibernate.internal.AbstractSharedSessionContract.beginTransaction(AbstractSharedSessionContract.java:397)
      	at org.hibernate.search.test.performance.optimizer.OptimizerPerformanceTest$ReverseWork.run(OptimizerPerformanceTest.java:167)
      	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)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: