NIFI-302: Blacklist a partition if IOException is thrown on rollover

This commit is contained in:
Mark Payne 2015-03-06 15:17:56 -05:00
parent f9620cc368
commit 608f8007ed

View File

@ -500,7 +500,12 @@ public final class MinimalLockingWriteAheadLog<T> implements WriteAheadRepositor
swapLocations = new HashSet<>(externalLocations);
for (final Partition<T> partition : partitions) {
try {
partition.rollover();
} catch (final IOException ioe) {
partition.blackList();
throw ioe;
}
}
// notify global sync with the write lock held. We do this because we don't want the repository to get updated