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

addInEdge check state error

    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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: