mirror of
https://github.com/apache/nifi.git
synced 2025-02-28 06:29:25 +00:00
NIFI-302: Blacklist a partition if IOException is thrown on rollover
This commit is contained in:
parent
f9620cc368
commit
608f8007ed
@ -500,7 +500,12 @@ public final class MinimalLockingWriteAheadLog<T> implements WriteAheadRepositor
|
|||||||
|
|
||||||
swapLocations = new HashSet<>(externalLocations);
|
swapLocations = new HashSet<>(externalLocations);
|
||||||
for (final Partition<T> partition : partitions) {
|
for (final Partition<T> partition : partitions) {
|
||||||
partition.rollover();
|
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
|
// notify global sync with the write lock held. We do this because we don't want the repository to get updated
|
||||||
|
Loading…
x
Reference in New Issue
Block a user