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

PagingTest#testDeletePhysicalPages will fail if a record about deleting a page is not saved in journal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.5
    • 2.6.3
    • None
    • None

    Description

      Apply: byteman rule, which simulates case of filesystem error (or restart in one specific moment) - so record of page deletion is not sored into journal

      RULE skip delete page complete record for page 120
      CLASS org.apache.activemq.artemis.core.paging.cursor.impl.PageSubscriptionImpl
      METHOD onDeletePage(Page)
      AT ENTRY
      IF $1.getPageId() == 120
      DO
      RETURN
      ENDRULE

      Scenario:

      1. send 1000 messages
      2. restart server
      3. receive 1000 messages
      4. stop server
      5. delete Paging directory
      6. start server
      7. send 1000 messages
      8. restart server
      9. receive 1000 messages

      Expected result: All messages are delivered.
      Actual result: Sometimes some messages are lost.
      Customer impact: The issue is related to paging. When customer restart server during receiving paged messages, some messages may be lost after the restart.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jondruse Jiri Ondrusek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: