Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3994

DefaultDatabaseLocker will leak pooled connections on link failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.6.0
    • 5.7.0
    • Message Store
    • None
    • Patch Available

    Description

      When the broker has lost the connection to the database through external issues – link or database goes down, the process broker will stop().
      When it is shutting down, it calls on each component (service) to stop().
      The DefaultDatabaseLocker when stopping will test the connection to see if it is open or not before calling close() on the connection. Given that the connection was closed due to a link failure, the connection is never returned to the pool, hence the leak.

      In this same file there is a comment in start() which warns about being careful about connection leaks.

      Attachments

        1. DefaultDatabaseLocker.java.patch
          2 kB
          Philip Bridger

        Activity

          People

            davsclaus Claus Ibsen
            pbridger Philip Bridger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: