[
https://issues.apache.org/jira/browse/FLINK-27800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17689597#comment-17689597
]
Lijie Wang commented on FLINK-27800:
------------------------------------
Fixed via
master: 756eeee8628ee7e81ca7b1b4ae80aa6cddd7284d
release-1.17: b64739a5ef976e003bf87250b41ae1142e541497
release-1.16: cca9ee1ac60810098bcf3dbf3013f4d6c91a10a8
release-1.15: c6b649bf937976038dbfcd00e59c51b8d886ad96
> addInEdge check state error
> ---------------------------
>
> Key: FLINK-27800
> URL: https://issues.apache.org/jira/browse/FLINK-27800
> Project: Flink
> Issue Type: Bug
> Components: API / Core
> Affects Versions: 1.14.4
> Reporter: Licho Sun
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.14.4
>
>
> when add InEdge, the checkState fucntion check the edge whether is in
> outEdges list, this should check whether in inEdges list.
>
> {code:java}
> public void addInEdge(StreamEdge inEdge) {
> checkState(
> outEdges.stream().noneMatch(inEdge::equals),
> "Adding not unique edge = %s to existing outEdges = %s",
> inEdge,
> inEdges);
> if (inEdge.getTargetId() != getId()) {
> throw new IllegalArgumentException("Destination id doesn't match the
> StreamNode id");
> } else {
> inEdges.add(inEdge);
> }
> } {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)