Github user sachingoel0101 commented on a diff in the pull request:

    https://github.com/apache/flink/pull/945#discussion_r37988692
  
    --- Diff: 
flink-runtime/src/main/scala/org/apache/flink/runtime/jobmanager/JobManager.scala
 ---
    @@ -524,13 +534,24 @@ class JobManager(
        * @param listenToEvents true if the sender wants to listen to job 
status and execution state
        *                       change notifications. false if not.
        */
    -  private def submitJob(jobGraph: JobGraph, listenToEvents: Boolean): Unit 
= {
    +  private def submitJob(
    +      jobGraph: JobGraph,
    +      listenToEvents: Boolean,
    +      clientVersion: String)
    +    : Unit = {
         if (jobGraph == null) {
           sender ! decorateMessage(
             Failure(
               new JobSubmissionException(null, "JobGraph must not be null.")
             )
           )
    +    } else if(jobManagerVersionID != clientVersion){
    +      sender ! decorateMessage(
    +        Failure(
    +          new JobSubmissionException(jobGraph.getJobID, "Client version 
mismatches that of Job " +
    +            "Manager.")
    --- End diff --
    
    The version is drawn from the Jar file's package version. Maven 
automatically adds this info.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to