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

PageCursorInfo should be cleared on its Maps when page is marked as complete

    XMLWordPrintableJSON

Details

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

    Description

      Say you have a paged destination where there is a lazy consumer. The other queues will keep consuming, and they will mark a page as complete. However PageCursorInfo::acks and PageCursorInfo::removedReferences should be cleared upon completion otherwise they will only be GCed when the page file is removed and the entries for PageCursorInfo removed.

      IntObjectHashMap also keeps an array of integers in memory and it won't remove it when all elements are removed. to the reference to IntObjectHashMap has to be set to null instead of removeAllReferences.

      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 - 20m
                  20m