Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/945#discussion_r38000188
--- 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 --
Yeah I know, but it might be interesting for the user who sees the
`JobSubmissionException` to know the exact version.
---
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.
---