[
https://issues.apache.org/jira/browse/ARTEMIS-4949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Clebert Suconic closed ARTEMIS-4949.
------------------------------------
Resolution: Fixed
> java.nio.channels.ClosedChannelException with slower devices and NIO journal
> ----------------------------------------------------------------------------
>
> Key: ARTEMIS-4949
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4949
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.35.0
> Reporter: Clebert Suconic
> Assignee: Clebert Suconic
> Priority: Major
> Fix For: 2.36.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> It is possible to get the following exception, with NIO and on a NFS file
> system.
> {code:java}
> java.nio.channels.ClosedChannelException: null
> at
> java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
> ~[?:?]
> at java.base/sun.nio.ch.FileChannelImpl.force(FileChannelImpl.java:459)
> ~[?:?]
> at
> org.apache.activemq.artemis.core.io.nio.NIOSequentialFile.syncChannel(NIOSequentialFile.java:340)
> ~[classes/:?]
> at
> org.apache.activemq.artemis.tests.unit.core.journal.impl.TimedBufferTest$3$1.syncChannel(TimedBufferTest.java:238)
> ~[test-classes/:?]
> at
> org.apache.activemq.artemis.core.io.nio.NIOSequentialFile.sync(NIOSequentialFile.java:323)
> ~[classes/:?]
> at
> org.apache.activemq.artemis.core.io.AbstractSequentialFile$LocalBufferObserver.checkSync(AbstractSequentialFile.java:304)
> [classes/:?]
> at
> org.apache.activemq.artemis.core.io.buffer.TimedBuffer.flushBatch(TimedBuffer.java:362)
> [classes/:?]
> at
> org.apache.activemq.artemis.core.io.buffer.TimedBuffer$CheckTimer.run(TimedBuffer.java:466)
> [classes/:?]
> at java.base/java.lang.Thread.run(Thread.java:833) [?:?
> {code}
> although I can see in the code inspection this could happen on a local file
> system as well, but I could not reproduce this easily on a local file system.
> (although it seems possible).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact