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

Messages from store are getting deleted 2 times when the deleteAllMessagesOnStartup is enabled on the broker configuration.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.0
    • Component/s: Broker
    • Labels:
      None

      Description

      I noticed this because when deleteAllMessagesOnStartup was enabled, starting up the JDBC store took a very long time to get started. Digging into it, I noticed that the slow start up was due to trying to clear out the messages after the database lock was aquired. Since the first delete happens before the store is started, and the second the delete happens after the store is started, the second delete is the one giving us the problems with the JDBC store. Going to remove that one.

        Attachments

          Activity

            People

            • Assignee:
              chirino Hiram R. Chirino
              Reporter:
              chirino Hiram R. Chirino
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: