Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8147

Possible leak of unclosed Statement in DatabaseTimerPersistence

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 11.0.0.Alpha1
    • EJB
    • None

    Description

      https://github.com/jbossas/jboss-eap7/blob/EAP_7.1.0.DR12-dev-2/ejb3/src/main/java/org/jboss/as/ejb3/timerservice/persistence/database/DatabaseTimerPersistence.java#L457

      On line 445, a Statement is obtained, but on line 457 the reference to it can be overwritten, in which case the finally block on line 496 won't close the previous Statement.

      Attachments

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              sdouglas1@redhat.com Stuart Douglas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: