Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 761BE200B9D for ; Wed, 7 Sep 2016 16:44:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7324F160ACF; Wed, 7 Sep 2016 14:44:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 951A4160ABF for ; Wed, 7 Sep 2016 16:44:08 +0200 (CEST) Received: (qmail 21746 invoked by uid 500); 7 Sep 2016 14:44:07 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 21734 invoked by uid 99); 7 Sep 2016 14:44:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2016 14:44:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EBB7E185865 for ; Wed, 7 Sep 2016 14:44:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id MJjEcUnbUqVw for ; Wed, 7 Sep 2016 14:44:04 +0000 (UTC) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4C7575F369 for ; Wed, 7 Sep 2016 14:44:04 +0000 (UTC) Received: by mail-lf0-f46.google.com with SMTP id l131so194752lfl.2 for ; Wed, 07 Sep 2016 07:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=cvBeovdC39EsRhVQAEj2qdLaPCWfN6johdjq2mfvtwY=; b=f2CIJ9gTEEZmfSUL5FBSPiSMvWkI1NH+PamvXguADQ0WI2rVj/JwxXQlSvFeIh/QUS Gbk47s78ZFVk477k7rXm/wS8GhNUrX2R1mHd0HGKToaOnl7CuXDfjLiCR3kzb1u+5Zkd uTR2qPzVugAULq11JrJE4Ijouo1UIEuVIIeuY2eJEQAtEG++fCEtqbkExIOln2dFA1o/ i6nUdNUJ82sLI+F4naX8pi8i3bNSlnlDWoVjritmTbJcF5sJ5Isfhlab/apVdZTeloxw ZmCPKcFq6qgGWvwG/Z6wXjoHo7Knc4wnpZKMATCMX+AvvVqhnyb1L94/JVpC9SZCnmaU QnQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cvBeovdC39EsRhVQAEj2qdLaPCWfN6johdjq2mfvtwY=; b=jubVjOH9/5jS+fR6tQF2nknaHZ3R5hWL7zXMBKzZzbDJuxtAZpOrEd4OIKESbkUOix 2+n6oNQorLY/BhmzRSUGYRHnU2b95ifmEZqbuXM1W59JXN9vk9DS68rgja6EzWPie70c irr0qb3KpUWv+KGBXl12sf1LFWKXlx5gP4K66+PI8rVAuwdd8dX5/DvSU1N8TJoCqO/2 Bi8/I+OdyXRCZnTzDv64sj2xgzCsxeY/Kv8hvNVRAnZ9xYr82SowUvRhYELlqjyokIkI owfLg4BwgeriphS2PyJdBdiRzpeLqMf+ARd4p0bI4gZD7BIzb9/lJs9eEp8s7aE7zP6y C/Mw== X-Gm-Message-State: AE9vXwMfzpFp4/LmDV+JwqNmWEWnA7JTA/25w6Aj/rTk9sTLgz7mkS8Z+Pc+OQh/QZFlR0f+eNYhHFNV7u3Fdg== X-Received: by 10.25.196.202 with SMTP id u193mr126080lff.77.1473259437799; Wed, 07 Sep 2016 07:43:57 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Gyula_F=C3=B3ra?= Date: Wed, 07 Sep 2016 14:43:47 +0000 Message-ID: Subject: Exception in CEP 1.1.2 To: "user@flink.apache.org" Content-Type: multipart/alternative; boundary=001a114b1f0273c032053bebf1e6 archived-at: Wed, 07 Sep 2016 14:44:09 -0000 --001a114b1f0273c032053bebf1e6 Content-Type: text/plain; charset=UTF-8 Hi guys, We tried building a simple pattern with the CEP library that matches 2 events with 2 filter conditions (where) but we get a strange error that comes from the stream operator: Pattern, ?> viewAndClick = Pattern .> begin("view") .where(Either::isLeft) .followedBy("click").where(Either::isRight) .within(Time.hours(8)); CEP.pattern(stream, pattern).select(...); We get the following exception when running this: java.lang.RuntimeException: Failure happened in filter function. at org.apache.flink.cep.nfa.NFA.computeNextStates(NFA.java:318) at org.apache.flink.cep.nfa.NFA.process(NFA.java:162) at org.apache.flink.cep.operator.KeyedCEPPatternOperator.processEvent(KeyedCEPPatternOperator.java:48) at org.apache.flink.cep.operator.AbstractCEPBasePatternOperator.processElement(AbstractCEPBasePatternOperator.java:72) at org.apache.flink.cep.operator.AbstractKeyedCEPPatternOperator.processElement(AbstractKeyedCEPPatternOperator.java:161) at org.apache.flink.streaming.runtime.io.StreamInputProcessor.processInput(StreamInputProcessor.java:176) at org.apache.flink.streaming.runtime.tasks.OneInputStreamTask.run(OneInputStreamTask.java:66) at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:266) at org.apache.flink.runtime.taskmanager.Task.run(Task.java:584) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalStateException: Could not find previous shared buffer entry with key: State(view, Normal, [ StateTransition(TAKE, click, with filter), StateTransition(IGNORE, view), ]), value: Left(View[...]) and timestamp: 1473258371116. This can indicate that the element belonging to the previous relation has been already pruned, even though you expect it to be still there. at org.apache.flink.cep.nfa.SharedBuffer.put(SharedBuffer.java:104) at org.apache.flink.cep.nfa.NFA.computeNextStates(NFA.java:295) ... 9 more Any ideas on what's going on here? Thanks, Gyula --001a114b1f0273c032053bebf1e6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi guys,

We tried building a simple pat= tern with the CEP library that matches 2 events with 2 filter conditions (w= here) but we get a strange error that comes from the stream operator:
=

Pattern<Either<View,= Click>, ?> viewAndClick =3D Pattern
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 .<Eithe= r<View,, Click>> begin("view")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 .wh= ere(Either::isLeft)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 .followedBy("click").wh= ere(Either::isRight)
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 .within(Time.hours(8));

CEP.pattern(stream, pattern).select(...);

We get = the following exception when running this:
java.lang.RuntimeException: Failure happened in filter functi= on.
=E2=80=82=E2=80=82at org.apache.flink.cep.nfa.NFA.computeNext= States(NFA.java:318)
=E2=80=82=E2=80=82at org.apache.flink.cep.nf= a.NFA.process(NFA.java:162)
=E2=80=82=E2=80=82at org.apache.flink= .cep.operator.KeyedCEPPatternOperator.processEvent(KeyedCEPPatternOperator.= java:48)
=E2=80=82=E2=80=82at org.apache.flink.cep.operator.Abstr= actCEPBasePatternOperator.processElement(AbstractCEPBasePatternOperator.jav= a:72)
=E2=80=82=E2=80=82at org.apache.flink.cep.operator.Abstract= KeyedCEPPatternOperator.processElement(AbstractKeyedCEPPatternOperator.java= :161)
=E2=80=82=E2=80=82at org.apache.flink.streaming.runtime.io.= StreamInputProcessor.processInput(StreamInputProcessor.java:176)
= =E2=80=82=E2=80=82at org.apache.flink.streaming.runtime.tasks.OneInputStrea= mTask.run(OneInputStreamTask.java:66)
=E2=80=82=E2=80=82at org.ap= ache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:266)
=E2=80=82=E2=80=82at org.apache.flink.runtime.taskmanager.Task.run= (Task.java:584)
=E2=80=82=E2=80=82at java.lang.Thread.run(Thread.= java:745)
Caused by: java.lang.IllegalStateException: Could not f= ind previous shared buffer entry with key: State(view, Normal, [
= StateTransition(TAKE, click, with filter),
StateTransition(IGNORE= , view),
]), value: Left(View[...]) and timestamp: 1473258371116.= This can indicate that the element belonging to the previous relation has = been already pruned, even though you expect it to be still there.
=E2=80=82=E2=80=82at org.apache.flink.cep.nfa.SharedBuffer.put(SharedBuffe= r.java:104)
=E2=80=82=E2=80=82at org.apache.flink.cep.nfa.NFA.com= puteNextStates(NFA.java:295)
=E2=80=82=E2=80=82... 9 more

Any ideas on what's going on here?

Thanks,
Gyula


--001a114b1f0273c032053bebf1e6--