[ 
https://issues.apache.org/jira/browse/AMQ-9254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17718875#comment-17718875
 ] 

ASF subversion and git services commented on AMQ-9254:
------------------------------------------------------

Commit 78a399cb8714c6b7cd0bbcaa6be21fa217399033 in activemq's branch 
refs/heads/activemq-5.18.x from Christopher L. Shannon (cshannon)
[ https://gitbox.apache.org/repos/asf?p=activemq.git;h=78a399cb87 ]

AMQ-9254 - Rework data file size validation and add unit test

This isolates the validation on data file length on read and adds unit
tests to verify we properly fallback to the real file length on initial
size check failure

(cherry picked from commit bcc74f93fe6dbbd5c795c35484db8efa29b254b6)


> KahaDB minor fix when db files may be larger than max length
> ------------------------------------------------------------
>
>                 Key: AMQ-9254
>                 URL: https://issues.apache.org/jira/browse/AMQ-9254
>             Project: ActiveMQ
>          Issue Type: Task
>            Reporter: Matt Pavlovich
>            Assignee: Matt Pavlovich
>            Priority: Minor
>             Fix For: 5.19.0, 5.17.5, 5.18.2
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Log message:
> {noformat}
> 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
> {noformat}
> db-54.log size: 33556877
> Note: This read would have succeeded otherwise.
> Reproducible test case:
> ref: https://github.com/mattrpav/activemq-jira-9254



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to