https://issues.apache.org/jira/browse/AMQ-5603 - catch interrupted on chunked zeros case

This commit is contained in:
gtully 2016-05-03 17:25:05 +01:00
parent 2e00891827
commit 555cd2b6bb
1 changed files with 2 additions and 0 deletions

View File

@ -408,6 +408,8 @@ public class Journal {
channel.force(false); channel.force(false);
channel.position(0); channel.position(0);
} catch (ClosedByInterruptException ignored) {
LOG.trace("Could not preallocate journal file with zeros", ignored);
} catch (IOException e) { } catch (IOException e) {
LOG.error("Could not preallocate journal file with zeros! Will continue without preallocation", e); LOG.error("Could not preallocate journal file with zeros! Will continue without preallocation", e);
} }