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

sending a close to JournalBufferSize message cause Critical IO Error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None

      Description

      we set the values of MinLargeMessageSize and JournalBufferSize to 1Mb and set JournalFileSize value to 10Mb, then we send a message less than 1Mb but close to 1Mb. We have the following errors :
      java.lang.IllegalStateException: Can't write records bigger than the bufferSize(1048576) on the journal: java.lang.IllegalStateException: Can't write records bigger than the bufferSize(1048576) on the journal

      when ActiveMQBuffer encode, which will write some specified fields, such as fileID, recordType, compactCount, etc. This result in buffer greater than 1Mb. TimedBuffer checksize and find it`s bigger than bufferSize before write buffer.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                yuebao yuebao
              • 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 - 40m
                  40m