mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-11 12:35:47 +00:00
The MappedSequentialFile relies on the assumption that any writers won't exceed the maximum capacity of the file, leaving the JVM to crash otherwise. This commit adds proper bounds checking on write operations (and position changes too) in order to provide recoverable effects if such scenario should occour. In addition are provided minor fixes on Mapped and Nio SequentialFile::fill behaviour to match the original contract.