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

Address Size differs between Mirror and Source queue, leading to OME scenarios

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.34.0
    • 2.35.0
    • None
    • None

    Description

      Say you configure the broker to mirror.

      You stop the mirror target (shutdown the server).

      Now you send and consume from a destination, keeping the destination's size close to zero.

      You may get an OME on that situation.

      This is because the calculation on the address-size only computes the main body of the message at the original queue. While Mirror will only get a small portion on the reference, in such cases you would end up with lazy starts in paging... and things could go wrong.

      To fix that, both Mirror and the source queue should get the body portion of the size.

      Basically while we route the message, we check if the address is not the original and the Mirror SNF should also get the same portion of the size in its calculation.

      Attachments

        Issue Links

          Activity

            People

              clebertsuconic Clebert Suconic
              clebertsuconic Clebert Suconic
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 0.5h
                  0.5h