[prev in list] [next in list] [prev in thread] [next in thread]
List: activemq-dev
Subject: [jira] [Created] (AMQ-5461) Locker is not released after starting fails
From: "Shi Lei (JIRA)" <jira () apache ! org>
Date: 2014-11-28 5:34:12
Message-ID: JIRA.12758304.1417152800000.37212.1417152852302 () Atlassian ! JIRA
[Download RAW message or body]
Shi Lei created AMQ-5461:
----------------------------
Summary: 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
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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic