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 7148C200C21 for ; Mon, 20 Feb 2017 14:54:16 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6FD1A160B76; Mon, 20 Feb 2017 13:54:16 +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 E08C7160B62 for ; Mon, 20 Feb 2017 14:54:15 +0100 (CET) Received: (qmail 6173 invoked by uid 500); 20 Feb 2017 13:54:10 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 6162 invoked by uid 99); 20 Feb 2017 13:54:09 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2017 13:54:09 +0000 Received: from mail-ua0-f173.google.com (mail-ua0-f173.google.com [209.85.217.173]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 8A5B41A00A2 for ; Mon, 20 Feb 2017 13:54:09 +0000 (UTC) Received: by mail-ua0-f173.google.com with SMTP id k1so6547563uab.0 for ; Mon, 20 Feb 2017 05:54:09 -0800 (PST) X-Gm-Message-State: AMke39lMplDB1vtImXXh2Ydy6bOUTbSLm8q286/DBYXUxtCCw0NKTLW32U71o7tNnNzz4t+tXkLyeaN5TETlCw== X-Received: by 10.176.1.174 with SMTP id 43mr7288108ual.92.1487598848443; Mon, 20 Feb 2017 05:54:08 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Gyula_F=C3=B3ra?= Date: Mon, 20 Feb 2017 13:53:57 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Question about Async IO To: "dev@flink.apache.org" Content-Type: multipart/alternative; boundary=001a11c17404ee17ef0548f6985f archived-at: Mon, 20 Feb 2017 13:54:16 -0000 --001a11c17404ee17ef0548f6985f Content-Type: text/plain; charset=UTF-8 Hi, I was looking at the AsyncFunction interface and try to wrap my head around the implementation and the assumptions and I have some questions, maybe somebody could help me out :) What happens if the user does not collect any data or set a future to do so in the invoke method? Also what happens if I create more than one Future? It seems that the "streamRecordBufferEntry" logic assumes that there will be a Future that eventually collects 1 thing or the user does this directly. Do I understand correctly? If not I am probably missing the part where the buffer entry is removed immediately if no async request was made. Thank you! Gyula --001a11c17404ee17ef0548f6985f--