You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tr...@apache.org on 2020/03/18 15:50:23 UTC

[flink] 03/05: [hotfix] Add JavaDoc to RegisteredRpcConnection#tryReconnect

This is an automated email from the ASF dual-hosted git repository.

trohrmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 9a0794528c98612f4dfcc723529419fdb992918f
Author: Till Rohrmann <tr...@apache.org>
AuthorDate: Tue Mar 17 15:08:07 2020 +0100

    [hotfix] Add JavaDoc to RegisteredRpcConnection#tryReconnect
---
 .../apache/flink/runtime/registration/RegisteredRpcConnection.java | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/registration/RegisteredRpcConnection.java b/flink-runtime/src/main/java/org/apache/flink/runtime/registration/RegisteredRpcConnection.java
index 8c78ede..b257e17 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/registration/RegisteredRpcConnection.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/registration/RegisteredRpcConnection.java
@@ -100,6 +100,13 @@ public abstract class RegisteredRpcConnection<F extends Serializable, G extends
 		}
 	}
 
+	/**
+	 * Tries to reconnect to the {@link #targetAddress} by cancelling the pending registration
+	 * and starting a new pending registration.
+	 *
+	 * @return {@code false} if the connection has been closed or a concurrent modification has happened;
+	 * otherwise {@code true}
+	 */
 	public boolean tryReconnect() {
 		checkState(isConnected(), "Cannot reconnect to an unknown destination.");