Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-975

Reading messages from page causes lost entries in db backend

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.12.0
    • Broker
    • None

    Description

      Consuming messages from pages with a db as persistence backend leaves commit records in message_table which doesn't get cleaned up. Seems that depaging does not add txids to internal map.

      SQL script for cleanup (no known side effect):

      DELETE
      FROM MESSAGE_TABLE
      WHERE txid IN
          (SELECT txid
           FROM
             (SELECT count(*) AS cnt,
                     txid
              FROM MESSAGE_TABLE
              WHERE txid IN
                  (SELECT txid
                   FROM MESSAGE_TABLE
                   WHERE recordtype = 18)
              GROUP BY txid)AS m
           WHERE m.cnt=1)
      

      Attachments

        1. screenshot-1.png
          159 kB
          Benjamin Graf

        Issue Links

          Activity

            People

              Unassigned Unassigned
              graben Benjamin Graf
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m