Return-Path: X-Original-To: apmail-beam-commits-archive@minotaur.apache.org Delivered-To: apmail-beam-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E02A719E11 for ; Wed, 6 Apr 2016 21:42:28 +0000 (UTC) Received: (qmail 69402 invoked by uid 500); 6 Apr 2016 21:42:28 -0000 Delivered-To: apmail-beam-commits-archive@beam.apache.org Received: (qmail 69359 invoked by uid 500); 6 Apr 2016 21:42:28 -0000 Mailing-List: contact commits-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.incubator.apache.org Delivered-To: mailing list commits@beam.incubator.apache.org Received: (qmail 69350 invoked by uid 99); 6 Apr 2016 21:42:28 -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; Wed, 06 Apr 2016 21:42:28 +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 4D43AC0C7F for ; Wed, 6 Apr 2016 21:42:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.016 X-Spam-Level: X-Spam-Status: No, score=-5.016 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.996] autolearn=disabled Received: from mx2-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 9IQyiUJhh6Ky for ; Wed, 6 Apr 2016 21:42:27 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id B672E5F488 for ; Wed, 6 Apr 2016 21:42:26 +0000 (UTC) Received: (qmail 68568 invoked by uid 99); 6 Apr 2016 21:42:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2016 21:42:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B0CE02C1F4E for ; Wed, 6 Apr 2016 21:42:25 +0000 (UTC) Date: Wed, 6 Apr 2016 21:42:25 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-175) Leak garbage collection timers in GlobalWindow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/BEAM-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15229185#comment-15229185 ] ASF GitHub Bot commented on BEAM-175: ------------------------------------- GitHub user mshields822 opened a pull request: https://github.com/apache/incubator-beam/pull/139 [BEAM-175] Don't leak state in Global window. * Delete end-of-window timer after triggering if there's no state left to garbage collect. * Avoid holds and end-of-time. * Avoid requiring previous pane info in global window. * Protect against overflow with GlobalWindow.maxTimestamp and getAllowedLateness. **Rough cut for comments** You can merge this pull request into a Git repository by running: $ git pull https://github.com/mshields822/incubator-beam beam-175 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-beam/pull/139.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #139 ---- commit e1ef963c4b3ccff3fa792c877a34893a2d2ea117 Author: Mark Shields Date: 2016-04-06T04:11:32Z Delete end-of-window timer after triggering if there's no state left to garbage collect. Avoid holds and end-of-time. Avoid requiring previous pane info in global window. Protect against overflow with GlobalWindow.maxTimestamp and getAllowedLateness. **Rough cut** ---- > Leak garbage collection timers in GlobalWindow > ---------------------------------------------- > > Key: BEAM-175 > URL: https://issues.apache.org/jira/browse/BEAM-175 > Project: Beam > Issue Type: Bug > Components: runner-core > Reporter: Mark Shields > Assignee: Mark Shields > > Consider the transform: > Window > .into(new GlobalWindows()) > .triggering( > Repeatedly.forever( > AfterProcessingTime.pastFirstElementInPane().plusDelayOf(...))) > .discardingFiredPanes() > This is a common idiom for 'process elements bunched by arrival time'. > Currently we create an end-of-window timer per key, which clearly will only fire if the pipeline is drained. > Better would be to avoid creating end-of-window timers if there's no state which needs to be processed at end-of-window (ie at drain if the Global window). -- This message was sent by Atlassian JIRA (v6.3.4#6332)