You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ethan Li (Jira)" <ji...@apache.org> on 2019/12/24 16:06:00 UTC

[jira] [Created] (FLINK-15386) SingleJobSubmittedJobGraphStore.putJobGraph has a logic error

Ethan Li created FLINK-15386:
--------------------------------

             Summary: SingleJobSubmittedJobGraphStore.putJobGraph has a logic error
                 Key: FLINK-15386
                 URL: https://issues.apache.org/jira/browse/FLINK-15386
             Project: Flink
          Issue Type: Bug
            Reporter: Ethan Li


https://github.com/apache/flink/blob/release-1.9/flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/SingleJobSubmittedJobGraphStore.java#L61-L66

{code:java}
	@Override
	public void putJobGraph(SubmittedJobGraph jobGraph) throws Exception {
		if (!jobGraph.getJobId().equals(jobGraph.getJobId())) { //this always returns false.
			throw new FlinkException("Cannot put additional jobs into this submitted job graph store.");
		}
	}
{code}



The code is there since 1.5 but fixed in the master branch (1.10). It's also better to add unit test for this.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)