[
https://issues.apache.org/jira/browse/FLUME-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14970323#comment-14970323
]
Hudson commented on FLUME-2593:
-------------------------------
UNSTABLE: Integrated in Flume-trunk-hbase-1 #131 (See
[https://builds.apache.org/job/Flume-trunk-hbase-1/131/])
FLUME-2593. ResettableFileInputStream returns negate values from read()
(johnyrufus:
[http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=0e40e831108f34b5bc6d01bf1ffa9efae330ea82])
*
flume-ng-core/src/test/java/org/apache/flume/serialization/TestResettableFileInputStream.java
*
flume-ng-core/src/main/java/org/apache/flume/serialization/ResettableFileInputStream.java
> ResettableFileInputStream returns negate values from read() method
> ------------------------------------------------------------------
>
> Key: FLUME-2593
> URL: https://issues.apache.org/jira/browse/FLUME-2593
> Project: Flume
> Issue Type: Bug
> Affects Versions: v1.5.2
> Reporter: Miroslav Holubec
> Assignee: Miroslav Holubec
> Priority: Minor
> Fix For: v1.7.0
>
> Attachments:
> 0001-FLUME-2593-ResettableFileInputStream-returns-negate-.patch,
> 0001-FLUME-2593-ResettableFileInputStream-returns-negate-.patch
>
>
> the int value returned from the method should be in range 0-255 for a byte
> read, or -1 when EOF was reached, as described in InputStream class javadoc.
> Fix is to change the line in read() method:
> {noformat}
> return byteBuf[0];
> {noformat}
> to
> {noformat}
> return byteBuf[0] & 0xFF;
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)