[
https://issues.apache.org/jira/browse/FLINK-11102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
boshu Zheng reassigned FLINK-11102:
-----------------------------------
Assignee: boshu Zheng (was: vinoyang)
> Enable check for previous data in SpanningRecordSerializer
> ----------------------------------------------------------
>
> Key: FLINK-11102
> URL: https://issues.apache.org/jira/browse/FLINK-11102
> Project: Flink
> Issue Type: Improvement
> Components: Network
> Affects Versions: 1.8.0
> Reporter: Nico Kruber
> Assignee: boshu Zheng
> Priority: Major
>
> {{SpanningRecordSerializer}} only verifies that there is no left-over data
> from a previous serialization call if {{SpanningRecordSerializer#CHECKED}} is
> {{true}} but this is hard-coded as {{false}}. Now if there was previous data,
> we would silently drop this and continue with our data. The deserializer
> would probably notice and fail but identifying the root cause may not be as
> easy anymore.
> -> We should enable that check by default since the only thing it does is to
> verify {{!java.nio.Buffer#hasRemaining()}} which cannot be too expensive.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)