Skip to content

Commit

Permalink
[FLINK-8065][QS] Improve error message when client already shut down.
Browse files Browse the repository at this point in the history
  • Loading branch information
kl0u committed Nov 17, 2017
1 parent ff7e3cf commit 75c1454
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public String getClientName() {

public CompletableFuture<RESP> sendRequest(final InetSocketAddress serverAddress, final REQ request) {
if (shutDown.get()) {
return FutureUtils.getFailedFuture(new IllegalStateException("Shut down"));
return FutureUtils.getFailedFuture(new IllegalStateException(clientName + " is already shut down."));
}

EstablishedConnection connection = establishedConnections.get(serverAddress);
Expand Down

0 comments on commit 75c1454

Please sign in to comment.