You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (Jira)" <ji...@apache.org> on 2019/11/07 17:42:01 UTC
[jira] [Resolved] (FLINK-12216) Respect the number of bytes from
input parameters in HybridMemorySegment
[ https://issues.apache.org/jira/browse/FLINK-12216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephan Ewen resolved FLINK-12216.
----------------------------------
Fix Version/s: 1.10.0
Resolution: Fixed
Fixed via 534835b0386c767116708f7986dfb759e377dcaf
> Respect the number of bytes from input parameters in HybridMemorySegment
> ------------------------------------------------------------------------
>
> Key: FLINK-12216
> URL: https://issues.apache.org/jira/browse/FLINK-12216
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Network, Runtime / Task
> Reporter: Liya Fan
> Assignee: Liya Fan
> Priority: Critical
> Labels: pull-request-available
> Fix For: 1.10.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> For the following two methods in HybridMemorySegment class,
> public final void get(int offset, ByteBuffer target, int numBytes)
> public final void put(int offset, ByteBuffer source, int numBytes)
> the actual number of bytes read/written should be specified by the input parameter numBytes, but it does not for some types of ByteBuffer. Instead, it simply read/write until the end.
> So this is a bug and I am going to fix it.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)