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

Early-started partial match timeout not yield completed matches

    XMLWordPrintableJSON

Details

    Description

      Pattern example:

      Pattern.begin("A").where(startsWith("a")).oneOrMore().consecutive().greedy()
          .followedBy("B")
          .where(count("A") > 2 ? startsWith("b") : startsWith("c"))
          .within(Time.seconds(3));

      Sequence example, currently without any output:

      a1 a2 a3 a4 c1

      When match[a3, a4, c1] completes, partial match[a1, a2, a3, a4] is earlier, so NFA#processMatchesAccordingToSkipStrategy() won't give any result, which is the expected behavior. However, when partial match[a1, a2, a3, a4] is timed-out, completed match[a3, a4, c1] should be "freed" from NFAState to output.

      Attachments

        Issue Links

          Activity

            People

              Juntao Hu Juntao Hu
              Juntao Hu Juntao Hu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: