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

LockFile in-jvm check is not thread-safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.4.2
    • 5.6.0
    • Broker
    • None
    • Patch Available

    Description

      kahadb/src/main/java/org/apache/kahadb/util/LockFile.java adds in-JVM locking to Channel.tryLock() using system properties. However, there is time between the read-and-check for an existing lock and setting a new lock.

      I found this problem while running multiple brokers in a single JVM for diagnostic purposes with two brokers using a shared directory to simlute a production H/A environment.

      Attachments

        1. amq-3301.patch
          3 kB
          Arthur Naseef

        Activity

          People

            rajdavies Robert Davies
            artnaseef Arthur Naseef
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: