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

KahaDB minor fix when db files may be larger than max length

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 6.0.0, 5.17.5, 5.18.2
    • KahaDB
    • None

    Description

      Log message:

      Caused by: java.io.IOException: Invalid location size: 54:33554460, size: 2412
              at org.apache.activemq.store.kahadb.disk.journal.DataFileAccessor.readRecord(DataFileAccessor.java:88) ~[?:?]
              at org.apache.activemq.store.kahadb.disk.journal.Journal.read(Journal.java:953) ~[?:?]
              at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:1197) ~[?:?]
              at org.apache.activemq.store.kahadb.KahaDBStore.loadMessage(KahaDBStore.java:1401) ~[?:?]
              ... 74 more
      

      db-54.log size: 33556877

      Note: This read would have succeeded otherwise.

      Reproducible test case:
      ref: https://github.com/mattrpav/activemq-jira-9254

      Attachments

        Issue Links

          Activity

            People

              mattrpav Matt Pavlovich
              mattrpav Matt Pavlovich
              Votes:
              0 Vote for this issue
              Watchers:
              3 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