Madan Jampani
Committed by Gerrit Code Review

Fail with StorageException.Unavailable only when client is CLOSED

Change-Id: I5a7f7cdb78aee88662b421cbcc03ed3b39e1e7ab
(cherry picked from commit 92ed7a17)
......@@ -73,7 +73,7 @@ public class OnosCopycatClient extends DelegatingCopycatClient {
@Override
public <T> CompletableFuture<T> submit(Query<T> query) {
if (state() == State.SUSPENDED || state() == State.CLOSED) {
if (state() == State.CLOSED) {
return Tools.exceptionalFuture(new StorageException.Unavailable());
}
CompletableFuture<T> future = new CompletableFuture<>();
......