From 555cd2b6bb7f25db318e26482e4ed11cd9da7d07 Mon Sep 17 00:00:00 2001 From: gtully Date: Tue, 3 May 2016 17:25:05 +0100 Subject: [PATCH] https://issues.apache.org/jira/browse/AMQ-5603 - catch interrupted on chunked zeros case --- .../org/apache/activemq/store/kahadb/disk/journal/Journal.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/journal/Journal.java b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/journal/Journal.java index 182a3d7757..a48f8dd362 100644 --- a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/journal/Journal.java +++ b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/journal/Journal.java @@ -408,6 +408,8 @@ public class Journal { channel.force(false); channel.position(0); + } catch (ClosedByInterruptException ignored) { + LOG.trace("Could not preallocate journal file with zeros", ignored); } catch (IOException e) { LOG.error("Could not preallocate journal file with zeros! Will continue without preallocation", e); }