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

KahaDB - checkForCorruptJournalFiles has hard coded 32k batch size limit in error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.14.0
    • Fix Version/s: 5.15.0, 5.14.2
    • Component/s: KahaDB, Message Store
    • Labels:
      None

      Description

      Using setCheckForCorruptJournalFiles=true, there is a sanity check of the journal at startup - skipping through each of the journal files validating batch record checksums and magic in an effort to detect corruption early and drop the relevant messages or error out.
      There is an error in the check logic that assumes a batch record must be < 32k which is not the case if a message is > 32k

      Tidy up this check and add some more detail to the error messages.

        Attachments

          Activity

            People

            • Assignee:
              gtully Gary Tully
              Reporter:
              gtully Gary Tully
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: