now not closing on a - AsynchronousCloseException e

This commit is contained in:
Rob Austin
2015-02-02 09:28:52 +00:00
parent 1fbdb74238
commit 418c1bd5ad
@@ -37,6 +37,7 @@ import java.lang.reflect.Field;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.channels.AsynchronousCloseException;
import java.nio.channels.SocketChannel;
import java.util.*;
import java.util.concurrent.atomic.AtomicLong;
@@ -1133,6 +1134,9 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable, Clon
try {
return blockingFetchThrowable(timeoutTime, transactionId);
} catch (AsynchronousCloseException e) {
LOG.error("name=" + name, e);
throw new RuntimeException(e);
} catch (IOException e) {
close();
throw new IORuntimeException(e);