Hi,
I'm trying out the new CEP library but have some problems with event detection. In my case Flink detects the event pattern: A followed by B within 10 seconds. But short time after event detection when the event pattern isn't matched anymore, the program crashes with the error message:
|
Hi Norman, which version of Flink are you using? We recently fixed some issues with the CEP library which looked similar to your error message. The problem occurred when using the CEP library with processing time. Switching to event or ingestion time, solve the problem. The fixes to make it also work with processing time are included in the latest snapshot version 1.1-SNAPSHOT and will be part of the upcoming 1.0.1 bugfix release. The bugfix release will actually be released today. If the problem should still remain with the latest version, it would be good to see your complete Flink program. Cheers, Till On Wed, Apr 6, 2016 at 11:04 AM, norman sp <[hidden email]> wrote: Hi, |
In reply to this post by norman sp
Hi Till,
I used Flink version 1.0.0 and tried all three TimeCharacteristics. Not I tried the new Flink 1.0.1 that gives me the following error. After detecting an event it processes a few stream tuples but then crashes. I'm not sure how to solve that part of the error message: "This can indicate that the element belonging to the previous relation has been already pruned, even though you expect it to be still there" 4> ####### Warning! FlowPatternEvent: #######
|
Hi Norman, this error is exactly what I thought I had fixed. I guess there is still another case where a premature pruning can happen in the SharedBuffer. Could you maybe send me the example code with which you could produce the error. The input data would also be very helpful. Then I can debug it. Thanks :-) Cheers, Till On Thu, Apr 7, 2016 at 7:50 AM, norman sp <[hidden email]> wrote: Hi Till, |
Hi Till,
thank you. here's the code: public class CepStorzSimulator {
|
Hi Norman, could you provide me an example input data set which produces the error? E.g. the list of strings you inserted into Kafka/read from Kafka? Cheers, Till On Thu, Apr 7, 2016 at 11:05 AM, norman sp <[hidden email]> wrote: Hi Till, |
Hi,
here is an example input that produces the error. These are read from Kafka. 01:43:43.592 1 2121 {"Pressure target - Value":"6"}
|
Hi Norman, sorry for the late reply. I finally found time and could, thanks to you, reproduce the problem. The problem was that the window borders were treated differently in two parts of the code. Now the left border of a window is inclusive and the right border (late elements) is exclusive. I've already committed a fix for this problem and tested it with your example data. If you use the latest master version, then your CEP example will now work :-) Thanks for reporting the problem. Cheers, Till On Thu, Apr 7, 2016 at 12:15 PM, norman sp <[hidden email]> wrote: Hi, |
Free forum by Nabble | Edit this page |