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

DefaultDatabaseLocker will leak pooled connections on link failure

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.7.0
    • Component/s: Message Store
    • Labels:
      None
    • Patch Info:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: