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 95C93200D58 for ; Sun, 17 Dec 2017 07:52:35 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 942CA160C17; Sun, 17 Dec 2017 06:52:35 +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 D9A39160BFF for ; Sun, 17 Dec 2017 07:52:34 +0100 (CET) Received: (qmail 67417 invoked by uid 500); 17 Dec 2017 06:52:33 -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 67407 invoked by uid 99); 17 Dec 2017 06:52:33 -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; Sun, 17 Dec 2017 06:52:33 +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 53F83C240C for ; Sun, 17 Dec 2017 06:52:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 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_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id MOTzPQuolP7s for ; Sun, 17 Dec 2017 06:52:29 +0000 (UTC) Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9E29A5F19D for ; Sun, 17 Dec 2017 06:52:28 +0000 (UTC) Received: by mail-oi0-f51.google.com with SMTP id r63so8750594oia.6 for ; Sat, 16 Dec 2017 22:52:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=X4hkjL5AMKYpQOjUNzALut3iVXfEIclsOQ0D0zc5ZKs=; b=eNuZIgD3t9NCs4DOJOCRXoWMtgK0IIPkdWiGqDkGHSbF+35m3WbCnfAEpRsfbKWgNY 711XqDzfuhHCe1tIdnn3ff9bgFkK/TvTg51rF7RQxhK4bKg4AMKP9wEPEoiN3NstwPjh 0ibfN3L31SZCJwI6iBQvwqF0WRINPyGXoMTxeO4p4wLgTgvRnYqQsDB8ClAgyv+lsyGc kfMVh6jajz1BvX1i5HA3ahOHG7sOS76x5/SoOkvyLrmampX34HHrJ6J3bnE3pzAxbJSi 2cRRqsO4JyiCvqfvXs/k3SXMLXWSEt5CVKyOwmIIUXxb4TpIACqmZl37mLcrenL590iw 1GoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=X4hkjL5AMKYpQOjUNzALut3iVXfEIclsOQ0D0zc5ZKs=; b=rtIKVPLl2hB0XZF3pNuVnOZUy5z7+W2u+gIWtXgyzh+eR4kU9fME4DJl5hf9n2p6LY cDvFrZC3vOG3UEU90IEnTL3ErpebBVEqXIa/mdo5c6ujY50+1iJHf02o/Z3ygfrfuAlY hhzyHMsNro3md0nKXrCiiYxyONUTFr8f+0j7Il/w8GmYauga2j01M+o00vZOXDJTM3GB 2dA7V9S3UJAvGlv7D8zoOx1jUpyCxkKw2EUDZop9JzUxW5O+TiE6JC/5JQj9DwPu8KnO XvfPnNESXfgdW+OL6oUOwq8xcUbaPabmwaNzMWjpcivKD3RODQgj2F9Jb8+ddZZ6izwS 1arg== X-Gm-Message-State: AKGB3mLk5Qqfck0LRdwL87PX4nLgL9tMgUc+dWnd3wKhOOdRio43/Do7 AUc3SfeO6vc5/PZweGFDng5ealNsszfzEEdCCpGOrQ== X-Google-Smtp-Source: ACJfBovVqeKrIY3vN8H70xS6hWvptK9OTM7lz/kzruE/hNQyWb7NYZtY2u6BZHJVVIdIUaGd6kwK7RP+x6fgxI+AYqw= X-Received: by 10.202.74.78 with SMTP id x75mr10424298oia.355.1513493540600; Sat, 16 Dec 2017 22:52:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.253.77 with HTTP; Sat, 16 Dec 2017 22:52:20 -0800 (PST) From: Vishal Santoshi Date: Sun, 17 Dec 2017 01:52:20 -0500 Message-ID: Subject: A question about Triggers To: user Content-Type: multipart/alternative; boundary="001a11c1829edb8087056083ac3e" archived-at: Sun, 17 Dec 2017 06:52:35 -0000 --001a11c1829edb8087056083ac3e Content-Type: text/plain; charset="UTF-8" I want to augment a POJO in Trigger's onElement method, specifically supply the POJO with the watermark from the TriggerContext. The sequence of execution is this sequence 1. call to add() in the accumulator for the window and save the POJO reference in the Accumulator. 2. call to onElement on Tigger 3. set watermark to the POJO The next add() method should have the last reference and any mutation done in step 3. That works in a local test case, using LocalFlinkMiniCluster, as in I have access to the mutation by the onElement() in the POJO in the subsequent add(), but not on a distributed cluster. The specific question I had is whether add() on a supplied accumulator on a window and onElement() method of the trigger on that window are inline executions, on the same thread or is there any serialization/deserialization IPC that causes these divergence ( local versus distributed ) Regards. --001a11c1829edb8087056083ac3e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I want to augment a POJO in=C2=A0 Trigger's onElement = method, specifically supply the POJO with the watermark from the TriggerCon= text. The sequence of execution is this sequence

1. call= to add() in the accumulator for the window=C2=A0 and save the POJO=C2=A0 r= eference in the Accumulator.
2. call to onElement on Tigger=C2=A0=
3. set watermark to the POJO

The next a= dd() method should have the last reference and any mutation done in step 3.=

That works in a local test case, using LocalFlink= MiniCluster, as in I have access to the mutation by the onElement() in the = POJO in the subsequent add(),=C2=A0 but not on a distributed cluster. The s= pecific question I had is whether=C2=A0 add() on a supplied accumulator on = a window and onElement() method of the trigger on that window are inline ex= ecutions, on the same thread or is there any serialization/deserialization = IPC that causes these divergence ( local versus distributed )=C2=A0

Regards.
--001a11c1829edb8087056083ac3e--