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

Slave broker acquires lock file when Master is still alive (shared file system master/slave setup)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 5.5.0
    • 5.6.0
    • Message Store
    • None
    • Windows 7, Windows Server 2008

    • Patch Available

    Description

      The change introduced in AMQ-3237 has triggered issue with LockFile.lock() on Win7 and Win2k8. See comments to the JRE issue http://bugs.sun.com/view_bug.do?bug_id=6628575 (bottom of the page).

      Suggested solution is to use this construction instead:
      fc.lock( 0, Math.max( 1, fc.size() ), false );

      Attachments

        1. LockFile.java.patch
          0.8 kB
          Dariusz Szablinski

        Activity

          People

            dejanb Dejan Bosanac
            daroo Dariusz Szablinski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: