You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/12/31 18:48:00 UTC

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

     [ https://issues.apache.org/jira/browse/FLINK-15386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated FLINK-15386:
-----------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Minor
>              Labels: pull-request-available
>
> 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)