You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2018/05/17 06:08:59 UTC

[13/13] flink git commit: [hotfix][conf] Add missing deprecation notes

[hotfix][conf] Add missing deprecation notes


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/da099048
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/da099048
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/da099048

Branch: refs/heads/release-1.5
Commit: da099048183b6cfb8531c55f07ad689388605a60
Parents: c7c7b55
Author: zentol <ch...@apache.org>
Authored: Wed May 16 13:50:31 2018 +0200
Committer: zentol <ch...@apache.org>
Committed: Wed May 16 20:22:33 2018 +0200

----------------------------------------------------------------------
 .../flink/configuration/ConfigConstants.java    | 27 ++++++++++++--------
 1 file changed, 16 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/da099048/flink-core/src/main/java/org/apache/flink/configuration/ConfigConstants.java
----------------------------------------------------------------------
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/ConfigConstants.java b/flink-core/src/main/java/org/apache/flink/configuration/ConfigConstants.java
index 6dd3067..362d2f9 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/ConfigConstants.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/ConfigConstants.java
@@ -204,8 +204,9 @@ public final class ConfigConstants {
 	public static final String TASK_MANAGER_IPC_PORT_KEY = "taskmanager.rpc.port";
 
 	/**
-	 * The config parameter defining the task manager's data port from the configuration.
+	 * @deprecated use {@link TaskManagerOptions#DATA_PORT} instead
 	 */
+	@Deprecated
 	public static final String TASK_MANAGER_DATA_PORT_KEY = "taskmanager.data.port";
 
 	/**
@@ -356,21 +357,21 @@ public final class ConfigConstants {
 	// --------------------------- Runtime Algorithms -------------------------------
 
 	/**
-	 * Parameter for the maximum fan for out-of-core algorithms.
-	 * Corresponds to the maximum fan-in for merge-sorts and the maximum fan-out
-	 * for hybrid hash joins.
+	 * @deprecated use {@link AlgorithmOptions#SPILLING_MAX_FAN} instead
 	 */
+	@Deprecated
 	public static final String DEFAULT_SPILLING_MAX_FAN_KEY = "taskmanager.runtime.max-fan";
 
 	/**
-	 * Key for the default spilling threshold. When more than the threshold memory of the sort buffers is full, the
-	 * sorter will start spilling to disk.
+	 * @deprecated use {@link AlgorithmOptions#SORT_SPILLING_THRESHOLD instead}
 	 */
+	@Deprecated
 	public static final String DEFAULT_SORT_SPILLING_THRESHOLD_KEY = "taskmanager.runtime.sort-spilling-threshold";
 
 	/**
-	 * Parameter to switch hash join bloom filters for spilled partitions on and off.
+	 * @deprecated use {@link AlgorithmOptions#HASH_JOIN_BLOOM_FILTERS} instead
 	 */
+	@Deprecated
 	public static final String RUNTIME_HASH_JOIN_BLOOM_FILTERS_KEY = "taskmanager.runtime.hashjoin-bloom-filters";
 
 	/**
@@ -1336,8 +1337,9 @@ public final class ConfigConstants {
 		BlobServerOptions.CLEANUP_INTERVAL.defaultValue();
 
 	/**
-	 * The default network port to connect to for communication with the job manager.
+	 * @deprecated use {@link JobManagerOptions#PORT} instead
 	 */
+	@Deprecated
 	public static final int DEFAULT_JOB_MANAGER_IPC_PORT = 6123;
 
 	/**
@@ -1501,18 +1503,21 @@ public final class ConfigConstants {
 	// ------------------------ Runtime Algorithms ------------------------
 
 	/**
-	 * Default setting for the switch for hash join bloom filters for spilled partitions.
+	 * @deprecated use {@link AlgorithmOptions#HASH_JOIN_BLOOM_FILTERS} instead
 	 */
+	@Deprecated
 	public static final boolean DEFAULT_RUNTIME_HASH_JOIN_BLOOM_FILTERS = false;
 
 	/**
-	 * The default value for the maximum spilling fan in/out.
+	 * @deprecated use {@link AlgorithmOptions#SPILLING_MAX_FAN} insstead
 	 */
+	@Deprecated
 	public static final int DEFAULT_SPILLING_MAX_FAN = 128;
 
 	/**
-	 * The default percentage of the sort memory to be full before data is spilled.
+	 * @deprecated use {@link AlgorithmOptions#SORT_SPILLING_THRESHOLD} instead
 	 */
+	@Deprecated
 	public static final float DEFAULT_SORT_SPILLING_THRESHOLD = 0.8f;
 
 	/**