From 652573a5a98e88027004b7d457b184d5c6a5ccce Mon Sep 17 00:00:00 2001 From: Martyn Taylor <mtaylor@redhat.com> Date: Thu, 17 Aug 2017 14:41:49 +0100 Subject: [PATCH] ARTEMIS-1354 Critical IO Error on AIO write failure --- .../activemq/artemis/core/io/aio/AIOSequentialFileFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java index e7b0dfaffd..51d960a320 100644 --- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java +++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java @@ -305,6 +305,7 @@ public final class AIOSequentialFileFactory extends AbstractSequentialFileFactor libaioFile.write(position, bytes, buffer, this); } catch (IOException e) { callback.onError(-1, e.getMessage()); + onIOError(e, "Failed to write to file", sequentialFile); } }