mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Review Exception throwing and handling throughtput the library, create specific InterProcessDeadLockException for Chronicle Map deadlocks
This commit is contained in:
@@ -264,15 +264,19 @@ public class ReplicatedChronicleMap<K, V, R> extends VanillaChronicleMap<K, V, R
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doClose() {
|
||||
protected void doClose(Throwable thrown) {
|
||||
for (Closeable closeable : closeables) {
|
||||
try {
|
||||
closeable.close();
|
||||
} catch (IOException e) {
|
||||
LOG.error("", e);
|
||||
} catch (Throwable t) {
|
||||
if (thrown == null) {
|
||||
thrown = t;
|
||||
} else {
|
||||
thrown.addSuppressed(t);
|
||||
}
|
||||
}
|
||||
}
|
||||
super.doClose();
|
||||
super.doClose(thrown);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user