You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2016/05/17 16:02:12 UTC

[jira] [Closed] (AMQ-5461) Locker is not released after starting fails

     [ https://issues.apache.org/jira/browse/AMQ-5461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish closed AMQ-5461.
-----------------------------
    Resolution: Incomplete

> 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)