kl0u commented on a change in pull request #9935: [FLINK-14456][client] Remove 
or shift down field from ClusterClient
URL: https://github.com/apache/flink/pull/9935#discussion_r336890938
 
 

 ##########
 File path: 
flink-clients/src/main/java/org/apache/flink/client/program/ClusterClient.java
 ##########
 @@ -45,37 +43,9 @@
  */
 public abstract class ClusterClient<T> implements AutoCloseable {
 
-       /** Configuration of the client. */
-       private final Configuration flinkConfig;
-
-       protected JobExecutionResult lastJobExecutionResult;
-
        /** Switch for blocking/detached job submission of the client. */
        private boolean detachedJobSubmission = false;
 
-       // 
------------------------------------------------------------------------
-       //                            Construction
-       // 
------------------------------------------------------------------------
-
-       /**
-        * Creates a instance that submits the programs to the JobManager 
defined in the
-        * configuration. This method will try to resolve the JobManager 
hostname and throw an exception
-        * if that is not possible.
-        *
-        * @param flinkConfig The config used to obtain the job-manager's 
address, and used to configure the optimizer.
-        */
-       public ClusterClient(Configuration flinkConfig) {
-               this.flinkConfig = Preconditions.checkNotNull(flinkConfig);
-       }
-
-       /**
-        * User overridable hook to close the client, possibly closes internal 
services.
-        * @deprecated use the {@link #close()} instead. This method stays for 
backwards compatibility.
-        */
-       public void shutdown() throws Exception {
-               close();
 
 Review comment:
   Hi @TisonKun, personally I am up for removing this method in favour of the 
`close()`, and in fact I had removed it in one of my old PRs and re-added it 
after @zentol said that people are using the `ClusterClient` directly. So I 
would say let's wait for @zentol to comment on that, but, as I said, I would 
also vote for removing it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to