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 4D840200D0E for ; Tue, 26 Sep 2017 11:17:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4BCDB1609C1; Tue, 26 Sep 2017 09:17:14 +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 908481609B4 for ; Tue, 26 Sep 2017 11:17:13 +0200 (CEST) Received: (qmail 70977 invoked by uid 500); 26 Sep 2017 09:17:12 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@flink.apache.org Received: (qmail 70967 invoked by uid 99); 26 Sep 2017 09:17:12 -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; Tue, 26 Sep 2017 09:17:12 +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 01B8D18287B for ; Tue, 26 Sep 2017 09:17:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.021 X-Spam-Level: X-Spam-Status: No, score=-0.021 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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=data-artisans-com.20150623.gappssmtp.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 yg6p-UHmgQfj for ; Tue, 26 Sep 2017 09:17:09 +0000 (UTC) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8921760CF8 for ; Tue, 26 Sep 2017 09:17:09 +0000 (UTC) Received: by mail-wm0-f45.google.com with SMTP id b195so5506904wmb.5 for ; Tue, 26 Sep 2017 02:17:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=data-artisans-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=OklwIaBHACVECd3WeGK1G8zbvKKc+VOH/OocFLr0n4w=; b=vbY8IfC4CAxdaXjVXmr+Zx7aRXm/Cz/O3VJWGSUHPcAgPw9Bs6eqNrNtNzaywngJnr VM+dAuod3SPGX6cBtPR+AUigYQ2nGvOGNI1w/ZFtxu5/1EeX6XcxD3qY8g8YKlSXzJ9e 9cbaXTT+StHo6XNfU+u2RRwgHku0umpjbSvT/FaBlyV/VkoppplQJjS+MiDK+dYcUfNi yHt7aPBQHldk08Ljwt4XZIqTpoGq2c/VMP6nRZjn1G2z6roq1v9hbityySF1eYzV98Jy yUvnnEoYOrkVFLVmgVcbN+Su1wc8ti2AzdWs83+zhxVJDgO0gY7/hOCoc31o6G5lq5he 73YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=OklwIaBHACVECd3WeGK1G8zbvKKc+VOH/OocFLr0n4w=; b=PbrBFIsKfPzjpBJ/R8EpTT+R5zslL8+1fK58r7bZ6MLxCeuDTays0ZHs77oE3ScUnb zf+9YqD7VI8nNUq6ZOZuSNmfhNKr+ZO+LTINw8WWZwQiz7t9Casi1O4z9sAjtyqACIaC QvLSE9E7+e9dEpO5HwiUiqhA+A6xXPspmswc3852Urj+Ki9c67YpJSEbnM2Zbjy5dmNz 5fU9dPvFoJ0EDUMcv+IyXLllVnS+J78obpee+gpXYSzLGnMELrjhv/J45it4P/etmEmd PgBdMh4rtsMA6b3rtEcC4sOhENiHa0oh80qJ8oEMcmtziAtHfzLv1DfLydAwXX16Ms0C z1Bg== X-Gm-Message-State: AHPjjUjSdmnZ7a6N1j4VgjtOC8LHykbEvivI2v6qYxk12gwyOxYq01EC umU632N+oqUt3KjIWx9K0beYnw== X-Google-Smtp-Source: AOwi7QBZWbxzShmJHghnH4JOUaP3sikdD2YW9fRD5vRf9E1lz/ifcrOKHORCtuz5NsDYtFawM9nS+Q== X-Received: by 10.28.153.206 with SMTP id b197mr3060746wme.60.1506417429057; Tue, 26 Sep 2017 02:17:09 -0700 (PDT) Received: from skynet.fritz.box (dslb-094-222-124-158.094.222.pools.vodafone-ip.de. [94.222.124.158]) by smtp.gmail.com with ESMTPSA id v5sm1289885wmb.0.2017.09.26.02.17.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Sep 2017 02:17:08 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: How to clear registered timers for a merged window? From: Stefan Richter In-Reply-To: Date: Tue, 26 Sep 2017 11:17:07 +0200 Cc: user , Aljoscha Krettek Content-Transfer-Encoding: quoted-printable Message-Id: <8F079AC7-4436-48F9-AF47-8F26126726FF@data-artisans.com> References: To: =?utf-8?B?IllhbiBaaG91IFtGRFMgU2NpZW5jZV0gwq0i?= X-Mailer: Apple Mail (2.3273) archived-at: Tue, 26 Sep 2017 09:17:14 -0000 Hi, I think that it is currently not possible to delete timers that did not = trigger, because currently some of the data structures used for timers = do not support random deletes efficiently. For the second part of the = question about keeping the state of merged windows, I added Aljoscha in = CC who might provide more information about the topic. Best, Stefan > Am 25.09.2017 um 22:59 schrieb Yan Zhou [FDS Science] =C2=AD = : >=20 > Hi, >=20 > I am implementing a merge-able trigger, and having a problem in = clearing the registered timers for a merged window (a window has been = merged into the merging result). For my implementation, the trigger = registers multiple timers for each element at Trigger#onElement(). State = is used to keep track of the registered event time, so that timer can be = removed at Trigger#clear() later. >=20 > However, clearing the registered timers in this way doesn't work if = the window has been merged. The state of origin window is removed during = merging. Method AbstractHeapMergingState#mergeNamespaces() removes the = state of merged window. I think the ContinuousEventTimeTrigger shipped = with flink would have same issue. >=20 > My question is is there a way to keep the state for a merged window? = One way I can think of is to implement a custom heap state that add the = state back in AbstractHeapMergingState#mergeState() method. Or is there = a way to clear the timers without using state? Can I twist the internal = timer's source code to expose a method to remove all timers for a = specified window? >=20 > Please advise and thank you for your help. >=20 > Best > Yan