flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Metzger (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-6550) Calling ctx.collect with a null OutputTag should log a warning or throw an exception
Date Mon, 19 Jun 2017 09:09:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-6550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16053658#comment-16053658
] 

Robert Metzger commented on FLINK-6550:
---------------------------------------

I would propose to throw an exception

> Calling ctx.collect with a null OutputTag should log a warning or throw an exception
> ------------------------------------------------------------------------------------
>
>                 Key: FLINK-6550
>                 URL: https://issues.apache.org/jira/browse/FLINK-6550
>             Project: Flink
>          Issue Type: Improvement
>          Components: DataStream API
>            Reporter: Chesnay Schepler
>            Priority: Minor
>
> When using side outputs it is currently possible to call {Context#collect(OutputTag<X>,
X record)} with null for the OutputTag. Effectively this causes the data to be swallowed.
It is unlikely that a user actually intends this, so i propose to either log a warning or
throw an exception.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message