[FLINK-8065][QS] Improve error message when client already shut down.
Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/75c14541 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/75c14541 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/75c14541 Branch: refs/heads/master Commit: 75c14541fdc52d5446b179e8e660b8a4fd90310c Parents: ff7e3cf Author: kkloudas <kklou...@gmail.com> Authored: Wed Nov 15 15:38:36 2017 +0100 Committer: kkloudas <kklou...@gmail.com> Committed: Fri Nov 17 10:46:09 2017 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/flink/queryablestate/network/Client.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/75c14541/flink-queryable-state/flink-queryable-state-client-java/src/main/java/org/apache/flink/queryablestate/network/Client.java ---------------------------------------------------------------------- diff --git a/flink-queryable-state/flink-queryable-state-client-java/src/main/java/org/apache/flink/queryablestate/network/Client.java b/flink-queryable-state/flink-queryable-state-client-java/src/main/java/org/apache/flink/queryablestate/network/Client.java index 13d34fb..e21145b 100644 --- a/flink-queryable-state/flink-queryable-state-client-java/src/main/java/org/apache/flink/queryablestate/network/Client.java +++ b/flink-queryable-state/flink-queryable-state-client-java/src/main/java/org/apache/flink/queryablestate/network/Client.java @@ -133,7 +133,7 @@ public class Client<REQ extends MessageBody, RESP extends MessageBody> { 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);