flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kklou...@apache.org
Subject [3/6] flink git commit: [FLINK-8065][QS] Improve error message when client already shut down.
Date Fri, 17 Nov 2017 11:03:21 GMT
[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/6314e486
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/6314e486
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/6314e486

Branch: refs/heads/release-1.4
Commit: 6314e4861df3100e8edd666f00e062c128f6e09f
Parents: 96b350a
Author: kkloudas <kkloudas@gmail.com>
Authored: Wed Nov 15 15:38:36 2017 +0100
Committer: kkloudas <kkloudas@gmail.com>
Committed: Fri Nov 17 11:19:08 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/6314e486/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);


Mime
View raw message