[
https://issues.apache.org/jira/browse/FLINK-13097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aljoscha Krettek closed FLINK-13097.
------------------------------------
Fix Version/s: 1.10.0
Resolution: Fixed
Resolved on master in 8c7b2d8cf47a14e201f3b96701436d74bb98a2c8
> Buffer depletion in SimpleCollectingOutputView throws non-obvious
> EOFException
> -------------------------------------------------------------------------------
>
> Key: FLINK-13097
> URL: https://issues.apache.org/jira/browse/FLINK-13097
> Project: Flink
> Issue Type: Improvement
> Components: Runtime / Task
> Affects Versions: 1.7.2, 1.8.0
> Environment: SCIO + BEAM + Flink under scala 2.12, java 8
> Reporter: Cyrille Chépélov
> Priority: Trivial
> Labels: pull-request-available
> Fix For: 1.10.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When SimpleCollectingOutputView is used, records are collected into a
> pre-allocated MemorySegmentSource.
> In case of depletion, the SimpleCollectingOutputView#nextSegment method
> throws EOFException without a message.
> This can be non-obvious to diagnose as a newcomer, as
> * the Java SDK documentation strongly suggests EOFException is related to an
> inability to read further (whereas in this context, the exception
> materializes an inability to _write_ further)
> * awareness than pre-allocated, fixed-size buffers are in play may not
> necessarily be expected of a newcomer to flink.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)