You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by fa...@apache.org on 2024/05/16 10:06:51 UTC

(flink) branch master updated: [FLINK-35226][rest] Deprecate execution-mode in ExecutionConfigInfo related rest api

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0c28e1ca7ea [FLINK-35226][rest] Deprecate execution-mode in ExecutionConfigInfo related rest api
0c28e1ca7ea is described below

commit 0c28e1ca7ea1548536d4a5849f57a40c961ee1cf
Author: Rui Fan <19...@gmail.com>
AuthorDate: Thu May 16 10:33:18 2024 +0800

    [FLINK-35226][rest] Deprecate execution-mode in ExecutionConfigInfo related rest api
---
 .../java/org/apache/flink/runtime/rest/messages/JobConfigInfo.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/JobConfigInfo.java b/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/JobConfigInfo.java
index c2cff94b919..ca7970d05a3 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/JobConfigInfo.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/JobConfigInfo.java
@@ -22,6 +22,7 @@ import org.apache.flink.api.common.ArchivedExecutionConfig;
 import org.apache.flink.api.common.JobID;
 import org.apache.flink.configuration.ConfigurationUtils;
 import org.apache.flink.runtime.rest.handler.job.JobConfigHandler;
+import org.apache.flink.runtime.rest.messages.job.JobDetailsInfo;
 import org.apache.flink.runtime.rest.util.RestMapperUtils;
 import org.apache.flink.util.Preconditions;
 
@@ -168,12 +169,14 @@ public class JobConfigInfo implements ResponseBody {
     /** Nested class to encapsulate the execution configuration. */
     public static final class ExecutionConfigInfo {
 
-        public static final String FIELD_NAME_EXECUTION_MODE = "execution-mode";
+        @Deprecated public static final String FIELD_NAME_EXECUTION_MODE = "execution-mode";
         public static final String FIELD_NAME_RESTART_STRATEGY = "restart-strategy";
         public static final String FIELD_NAME_PARALLELISM = "job-parallelism";
         public static final String FIELD_NAME_OBJECT_REUSE_MODE = "object-reuse-mode";
         public static final String FIELD_NAME_GLOBAL_JOB_PARAMETERS = "user-config";
 
+        /** @deprecated Use {@link JobDetailsInfo#getJobType()} instead. */
+        @Deprecated
         @JsonProperty(FIELD_NAME_EXECUTION_MODE)
         private final String executionMode;