Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-3952

Find/fix database connection errors after clj-parent 2.0 dep upgrades

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      PuppetDB
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      A problem that could cause harmless, but noisy database connection errors during shutdown has been fixed.
    • QA Risk Assessment:
      Needs Assessment

      Description

      For example, during lein test:

      Jun 25, 2018 4:02:20 PM org.postgresql.Driver connect
      SEVERE: Connection error: 
      org.postgresql.util.PSQLException: FATAL: database "pdb_test_593" does not exist
              at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
              at org.postgresql.core.v3.QueryExecutorImpl.readStartupMessages(QueryExecutorImpl.java:2566)
              at org.postgresql.core.v3.QueryExecutorImpl.<init>(QueryExecutorImpl.java:131)
              at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:210)
              at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
              at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
              at org.postgresql.Driver.makeConnection(Driver.java:452)
              at org.postgresql.Driver.connect(Driver.java:254)
              at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
              at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
              at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:375)
              at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:204)
              at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:459)
              at com.zaxxer.hikari.pool.HikariPool.access$200(HikariPool.java:70)
              at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:696)
              at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:682)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                rob.browning Rob Browning
                Reporter:
                rob.browning Rob Browning
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support