Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-492

scheduler lock does not use the same delay as the kahadb lock

    XMLWordPrintable

Details

    • Story
    • Resolution: Done
    • Minor
    • JBoss A-MQ 6.2
    • None
    • None
    • None

    Description

      When the kahadb lock delay is configured by specifying the following config:| <persistenceAdapter>||<kahaDB directory="/Users/jsherman/Development/tools/jboss-amq/apache-activemq-5.8.0.redhat-60024/data/kahadb">|

      <locker>
      <shared-file-locker lockAcquireSleepInterval="5000"/>
      </locker>
      </kahaDB>
      </persistenceAdapter>

      The scheduler lock continues to retry every 10 secs.This is seen in the log with the following messages:| 2013-12-06 07:29:40,920 | INFO | Database /Users/jsherman/Development/tools/jboss-amq/apache-activemq-5.8.0.redhat-60024/data/localhost/scheduler/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.IOException: File '/Users/jsherman/Development/tools/jboss-amq/apache-activemq-5.8.0.redhat-60024/data/localhost/scheduler/lock' could not be locked. | org.apache.activemq.store.kahadb.scheduler.JobSchedulerStoreImpl | main|Whereas the kahadb lock shows the following:| 2013-12-02 15:06:58,416 | INFO |||Database /Users/jsherman/Development/tools/jboss-amq/apache-activemq-5.8.0.redhat-60024/data/kahadb/lock|

      is locked... waiting 5 seconds for the database to be unlocked. Reason:
      java.io.IOException: File
      '/Users/jsherman/Development/tools/jboss-amq/apache-activemq-5.8.0.redhat-60024/data/kahadb/lock'
      could not be locked. org.apache.activemq.store.SharedFileLocker main

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-jsherman Jason Sherman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: