[
https://issues.apache.org/jira/browse/FLINK-2124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14595534#comment-14595534
]
ASF GitHub Bot commented on FLINK-2124:
---------------------------------------
Github user StephanEwen commented on the pull request:
https://github.com/apache/flink/pull/848#issuecomment-114044907
I think a good addition would be to remember the number of elements in the
set, and use that to validate that the deserialization worked properly.
Serializers may be user-defined (when they want) and the user-defined
serializers may be buggy. Counting the number of elements and verifying that
everything is consumed after deserialization is a good way of figuring out
whether things are sane, and giving an error if not.
> FromElementsFunction is not really Serializable
> -----------------------------------------------
>
> Key: FLINK-2124
> URL: https://issues.apache.org/jira/browse/FLINK-2124
> Project: Flink
> Issue Type: Bug
> Components: Streaming
> Reporter: Aljoscha Krettek
> Assignee: Johannes Reifferscheid
>
> The function stores an Iterable of T. T is not necessarily Serializable and
> and Iterable is also not necessarily Serializable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)