Return-Path: X-Original-To: apmail-flink-dev-archive@www.apache.org Delivered-To: apmail-flink-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B836E18373 for ; Wed, 29 Apr 2015 10:33:32 +0000 (UTC) Received: (qmail 65554 invoked by uid 500); 29 Apr 2015 10:33:32 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 65488 invoked by uid 500); 29 Apr 2015 10:33:32 -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 65477 invoked by uid 99); 29 Apr 2015 10:33:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 10:33:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.164.171.186 which is an MX secondary for dev@flink.apache.org) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 10:33:27 +0000 Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id A233D428E1 for ; Wed, 29 Apr 2015 10:33:06 +0000 (UTC) Received: (qmail 65231 invoked by uid 99); 29 Apr 2015 10:33:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 10:33:06 +0000 Date: Wed, 29 Apr 2015 10:33:06 +0000 (UTC) From: "Daniel Bali (JIRA)" To: dev@flink.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLINK-1956) Runtime context not initialized in RichWindowMapFunction MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Daniel Bali created FLINK-1956: ---------------------------------- Summary: Runtime context not initialized in RichWindowMapFunction Key: FLINK-1956 URL: https://issues.apache.org/jira/browse/FLINK-1956 Project: Flink Issue Type: Bug Components: Streaming Reporter: Daniel Bali Assignee: Marton Balassi Trying to access the runtime context in a rich window map function results in an exception. The following snippet demonstrates the bug: env.generateSequence(0, 1000) .window(Count.of(10)) .mapWindow(new RichWindowMapFunction>() { @Override public void mapWindow(Iterable input, Collector> out) throws Exception { long self = getRuntimeContext().getIndexOfThisSubtask(); for (long value : input) { out.collect(new Tuple2<>(self, value)); } } }).flatten().print(); -- This message was sent by Atlassian JIRA (v6.3.4#6332)