[
https://issues.apache.org/jira/browse/FLINK-5561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15829991#comment-15829991
]
ASF GitHub Bot commented on FLINK-5561:
---------------------------------------
GitHub user NicoK opened a pull request:
https://github.com/apache/flink/pull/3171
[FLINK-5561] fix DataInputDeserializer#available() 1 smaller than correct
This also adds a unit test for `DataInputDeserializer#available()` - the
first one for `DataInputDeserializer` unfortunately, but adding more is a
different issue.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/NicoK/flink flink-5561
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/3171.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 #3171
----
commit e29d5ef3099d5f5ffc817f3e5cdbb79c523b34c7
Author: Nico Kruber <[email protected]>
Date: 2017-01-18T17:52:57Z
[FLINK-5561] fix DataInputDeserializer#available() 1 smaller than correct
----
> DataInputDeserializer#available returns one too few
> ---------------------------------------------------
>
> Key: FLINK-5561
> URL: https://issues.apache.org/jira/browse/FLINK-5561
> Project: Flink
> Issue Type: Bug
> Affects Versions: 1.2.0
> Reporter: Nico Kruber
> Assignee: Nico Kruber
>
> DataInputDeserializer#available seems to assume that the position points to
> the last read byte but instead it points to the next byte. Therefore, it
> returns a value which is 1 smaller than the correct one.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)