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

Overlapping PList iterators can read wrong data or throw exceptions about chunk streams not existing.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.7.0
    • Component/s: Broker
    • Labels:
      None

      Description

      When multiple PList iterators are in use and happen have an overlapping read of PageFile data on disk they can reset each others seek offset and cause an exception to be thrown about "chunk stream does not exist" or read of a page in the Free list. The reason is that the hasNext of PList iterator needs to by sync'd on the index lock to prevent two iterators from entering into a readPage call concurrently.

        Attachments

        1. new.txt
          5 kB
          Gary Tully

          Issue Links

            Activity

              People

              • Assignee:
                tabish Timothy A. Bish
                Reporter:
                tabish Timothy A. Bish
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: