Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-27800

addInEdge check state error

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      when add InEdge, the checkState fucntion check the edge whether is in outEdges list, this should check whether in inEdges list.

       

      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);
          }
      } 

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            Licho Licho Sun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment