[
https://issues.apache.org/jira/browse/FLINK-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14371481#comment-14371481
]
ASF GitHub Bot commented on FLINK-1761:
---------------------------------------
GitHub user uce opened a pull request:
https://github.com/apache/flink/pull/504
[FLINK-1761] Fix IndexOutOfBoundsException when receiving empty buffer
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/uce/incubator-flink empty_buf-flink-1761
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/504.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #504
----
commit d457377289f7b291204e50efac7d387b3d68ea0a
Author: Ufuk Celebi <[email protected]>
Date: 2015-03-20T15:28:03Z
[FLINK-1761] Fix IndexOutOfBoundsException when receiving empty buffer
----
> IndexOutOfBoundsException when receiving empty buffer at remote channel
> -----------------------------------------------------------------------
>
> Key: FLINK-1761
> URL: https://issues.apache.org/jira/browse/FLINK-1761
> Project: Flink
> Issue Type: Bug
> Components: Distributed Runtime
> Affects Versions: master
> Reporter: Ufuk Celebi
> Assignee: Ufuk Celebi
>
> Receiving buffers from remote input channels with size 0 results in an
> {{IndexOutOfBoundsException}}.
> {code}
> Caused by: java.lang.IndexOutOfBoundsException: index: 30 (expected: range(0,
> 30))
> at io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1123)
> at
> io.netty.buffer.PooledUnsafeDirectByteBuf.getBytes(PooledUnsafeDirectByteBuf.java:156)
> at
> io.netty.buffer.PooledUnsafeDirectByteBuf.getBytes(PooledUnsafeDirectByteBuf.java:151)
> at io.netty.buffer.SlicedByteBuf.getBytes(SlicedByteBuf.java:179)
> at io.netty.buffer.AbstractByteBuf.readBytes(AbstractByteBuf.java:717)
> at
> org.apache.flink.runtime.io.network.netty.PartitionRequestClientHandler.decodeBufferOrEvent(PartitionRequestClientHandler.java:205)
> at
> org.apache.flink.runtime.io.network.netty.PartitionRequestClientHandler.decodeMsg(PartitionRequestClientHandler.java:164)
> at
> org.apache.flink.runtime.io.network.netty.PartitionRequestClientHandler.channelRead(PartitionRequestClientHandler.java:118)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)