You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (Jira)" <ji...@apache.org> on 2020/01/31 11:17:00 UTC

[jira] [Assigned] (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 ]

Chesnay Schepler reassigned FLINK-15386:
----------------------------------------

    Assignee: Ethan Li

> SingleJobSubmittedJobGraphStore.putJobGraph has a logic error
> -------------------------------------------------------------
>
>                 Key: FLINK-15386
>                 URL: https://issues.apache.org/jira/browse/FLINK-15386
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Coordination
>            Reporter: Ethan Li
>            Assignee: Ethan Li
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)