Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5461

Locker is not released after starting fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 5.10.0
    • None
    • Broker
    • None
    • JDK7, Windows 7

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shilei812 Shi Lei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 72h
                72h
                Remaining:
                Remaining Estimate - 72h
                72h
                Logged:
                Time Spent - Not Specified
                Not Specified