[ https://issues.apache.org/jira/browse/FLINK-12216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephan Ewen closed FLINK-12216. -------------------------------- > 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)