Details
-
Story
-
Resolution: Done
-
Minor
-
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 |