activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Tully (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-5461) Locker is not released after starting fails
Date Fri, 27 Nov 2015 14:12:10 GMT

    [ https://issues.apache.org/jira/browse/AMQ-5461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15029905#comment-15029905
] 

Gary Tully commented on AMQ-5461:
---------------------------------

trace level logging for : org.apache.activemq.store.jdbc.LeaseDatabaseLocker should explain
what is going on.
If not, can produce it and attach the logging from both instances.

> Locker is not released after starting fails 
> --------------------------------------------
>
>                 Key: AMQ-5461
>                 URL: https://issues.apache.org/jira/browse/AMQ-5461
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.10.0
>         Environment: JDK7, Windows 7
>            Reporter: Shi Lei
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> How to produce, 
> 1, Configure activemq 
> <amq:broker start="false" id="broker" brokerName="testBroker" startAsync="true">
>     <amq:managementContext>
>       <amq:managementContext createConnector="false"/>
>     </amq:managementContext>
>     <amq:ioExceptionHandler>
>       <amq:jDBCIOExceptionHandler resumeCheckSleepPeriod="7000"/>
>     </amq:ioExceptionHandler>
>     <amq:persistenceAdapter>
>       <amq:jdbcPersistenceAdapter lockKeepAlivePeriod="5000" dataSource="#ds" dataDirectory="activemq-data">
>         <amq:locker>
>           <amq:lease-database-locker maxAllowableDiffFromDBTime="500" lockAcquireSleepInterval="13000"/>
>         </amq:locker>
>       </amq:jdbcPersistenceAdapter>
>     </amq:persistenceAdapter>
>     <amq:transportConnectors>
>       <amq:transportConnector name="default" uri="tcp://localhost:8093"/>
>     </amq:transportConnectors>
>   </amq:broker>
> 2, start another program, ex. tomcat to listen at port 8093
> 3, BrokerService brokerService = BrokerFactory.createBroker("xbean:ActiveMQ.xml");
> brokerService.start();
> 4, Check table activemq_lock
> you can see activemq_lock.broker_name is "testBroker"
> and activemq_lock.time is updated every 5 seconds
> But brokerService.isStarted() is false.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message