Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1064

BootstrapLogManager does not reuse the instantiated Handler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.4, 3.0.0
    • 2.2.5, 3.0.0
    • karaf
    • None

    Description

      When running Karaf in Master/Slave mode, the method getDefaultHandler() in class org.apache.karaf.main.BootstrapLogManager is being invoked twice, one time in org.apache.karaf.main.Main and another one in the lock file class (SimpleFileLock or DefaultJDBCLock), but the object instance of the Handler class is created without closing the previous one.

      I have created a patch which completes the singleton pattern, returning the previous handler if the instance is not null. The patch has been created against the trunk, but you can apply it to branch karaf-2.2.x.

      Attachments

        1. patchfile.txt
          0.5 kB
          Álvaro Alda
        2. patchfile.txt
          0.5 kB
          Álvaro Alda

        Activity

          People

            pieber Andreas Pieber
            alvaro.alda Álvaro Alda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: