[
https://issues.apache.org/jira/browse/ARTEMIS-2274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16792020#comment-16792020
]
ASF subversion and git services commented on ARTEMIS-2274:
----------------------------------------------------------
Commit b672cc3ad97da7ae0ffcff8dbf24c2aad5c3f174 in activemq-artemis's branch
refs/heads/master from yb
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=b672cc3 ]
ARTEMIS-2274 Test showing issue with Message overflowing buffer when sizes are
too close to TimedBuffer size
> sending a close to JournalBufferSize message cause Critical IO Error
> --------------------------------------------------------------------
>
> Key: ARTEMIS-2274
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2274
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: yuebao
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)