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 885C8200B4B for ; Thu, 7 Jul 2016 07:21:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 86C43160A73; Thu, 7 Jul 2016 05:21:27 +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 ABB83160A64 for ; Thu, 7 Jul 2016 07:21:26 +0200 (CEST) Received: (qmail 38049 invoked by uid 500); 7 Jul 2016 05:21:25 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 38038 invoked by uid 99); 7 Jul 2016 05:21:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2016 05:21:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 45070C2F12 for ; Thu, 7 Jul 2016 05:21:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.298 X-Spam-Level: * X-Spam-Status: No, score=1.298 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id wjfIV1OI6zJ9 for ; Thu, 7 Jul 2016 05:21:21 +0000 (UTC) Received: from mail-qk0-f176.google.com (mail-qk0-f176.google.com [209.85.220.176]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DC45E5F257 for ; Thu, 7 Jul 2016 05:21:20 +0000 (UTC) Received: by mail-qk0-f176.google.com with SMTP id 82so5995990qko.3 for ; Wed, 06 Jul 2016 22:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=f9xR1XF15ReateQrRPLYoivD3hKk8DGQbUub+v1qbR4=; b=fvZ3+QZ+CHDvufXRFet603cixDY5vZTwxi4t5tBGbvINtCSsK9J2TP4DyXnLEPoI5n 85r7VlT4jpQFcu7tdWef/8YuPVTsKwIG2P/TfLj7fhZ6/MavkUaaCNIrOuw+j4GXQnWI 2xvfPKemuqlJbj306ps5P6WrJLx+4zNQO17ZjKDf3YEWVvuUjeFV9I/kYa3Pkp4Kb2Kd xMzktQfQO+sB8KRXVuwuSNU9nhjSO7Qsc8A+zMpglu9ooYsX72kpSlyhd4IBsRGxvVDx 3NzjZhALKnJ5lQuStMdO8a+cwyloqrWlztUkgf7PWPtHLMnOXVd+OayJou1hIcrxTBvN yl3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=f9xR1XF15ReateQrRPLYoivD3hKk8DGQbUub+v1qbR4=; b=YimI54wo5abSSyzVEi/ege0owM4NL19oWM80JlYgQRlXZD23H4hvfARpm/qgUmBj7O n19ZELrySpba4y5p5gy/5sxcFRy7YRegt/sX7Bax/4YoWXUOD1ylVJACgb/F41VHDiq0 RsDcikPFeyU1dlW0IarsJNHJHTJeAqVbE0BlvBeKuQX25EMMtfI83xbYUPbHlW8xF3Kw J3R4koOGEMDJ/Q3l7Wals+wtBhT9V1e8oetliocjd58JjbtqYY4o8++YiXBVyhsjSkCg JQ5yaSi4tG/MmlLB4eazMWRrAyo4s5BCi8noC0/fB5vxhufg74SOto9mzwsU8TO/O7PS yWcQ== X-Gm-Message-State: ALyK8tJOYrVwKl5Dreaz5tI/UkdiNyPx488wQkU6b6Y60UeqQrs3v/rovEDNaUOtie4AmnZFQQqddExW7hZS1cEe X-Received: by 10.55.221.25 with SMTP id n25mr34226007qki.110.1467868880052; Wed, 06 Jul 2016 22:21:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.54.93 with HTTP; Wed, 6 Jul 2016 22:21:19 -0700 (PDT) In-Reply-To: <5E6758C3-0CD0-4706-8768-CD85955C70E5@gridgain.com> References: <5E6758C3-0CD0-4706-8768-CD85955C70E5@gridgain.com> From: Nikolay Tikhonov Date: Thu, 7 Jul 2016 08:21:19 +0300 Message-ID: Subject: Re: Why the Continuous Queries ignore expired event permanently? To: Denis Magda Cc: user@ignite.apache.org Content-Type: multipart/alternative; boundary=001a1149b5c42c58cf053704db39 archived-at: Thu, 07 Jul 2016 05:21:27 -0000 --001a1149b5c42c58cf053704db39 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Lin, CQ doesn't support expired events by historical reason. But you can use CacheEntryListener [1] which support the same functionality that CQ and allow to get expired events [2]. [1] IgniteCache#registerCacheEntryListener [2] javax.cache.event.CacheEntryExpiredListener On Wed, Jul 6, 2016 at 7:14 PM, Denis Magda wrote: > Hi Lin, > > As far as I recall this kind of events are not supported by CQ (continuou= s > queries) right know. However I=E2=80=99m not sure about the reason. > > *Nick*, can you comment this? > > =E2=80=94 > Denis > > On Jul 6, 2016, at 10:17 AM, Lin wrote: > > Hi all, > > I am trying to switch my event listener application from event subsystem > with CacheEvent to the Continuous Queries with CacheEntryEvent, and I fou= nd > that the system will ignore all the expired events. > > Please see the code > in org.apache.ignite.internal.processors.cache.query.continuous.CacheCont= inuousQueryManager#executeQuery > and > > org.apache.ignite.internal.processors.cache.query.continuous.CacheContinu= ousQueryListener#onEntryUpdated. > > No matter CacheContinuousQueryHandlerV2 or CacheContinuousQueryHandler, > the parameter of ignoreExpired is always true. > > 1. What do you consider to ignore expired events? > 2. What if I set the parameter ignoreExpired to false? > > > Regards, > > Lin. > > > --001a1149b5c42c58cf053704db39 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Lin,

CQ doesn't support expired = events by historical=C2=A0reason. But you can use CacheEntryListener [1] wh= ich support the same functionality that CQ and allow to get expired events = [2].

[1] IgniteCache#registerCacheEntryListener
[2]=C2=A0javax.cache.event.CacheEntryExpiredListener

On Wed, Jul 6, 2= 016 at 7:14 PM, Denis Magda <dmagda@gridgain.com> wrote:
Hi Lin= ,

As far as I recall this kind of events are not support= ed by CQ (continuous queries) right know. However I=E2=80=99m not sure abou= t the reason.

Nick, can you comment this?

=E2=80=94
Denis

=
On Jul 6, 2016, at 10:17 AM, Lin <me@linlyu.com> wrot= e:

Hi all,

I am trying to switc= h my event listener application from event subsystem with CacheEvent to the= Continuous Queries with CacheEntryEvent, and I found that the system will = ignore all the expired events.

Please see the code= in=C2=A0org.apache.ignite.internal.processors.cache.query.continuous.Cache= ContinuousQueryManager#executeQuery and=C2=A0
org.apache.ignite.i= nternal.processors.cache.query.continuous.CacheContinuousQueryListener#onEn= tryUpdated.=C2=A0

No matter=C2=A0CacheContinuousQu= eryHandlerV2 or=C2=A0CacheContinuousQueryHandler, the parameter of=C2=A0ign= oreExpired is always true.

1. What do you consider= to ignore expired events?
2. What if I set the parameter ignoreE= xpired to false?


Regards,

Lin.


--001a1149b5c42c58cf053704db39--