[ 
https://issues.apache.org/jira/browse/HDFS-8191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhe Zhang updated HDFS-8191:
----------------------------
    Status: Patch Available  (was: Open)

The default upcasting from byte to integer will result in negative integers if 
the first bit of the byte is 1. This causes {{read()}} to return -1, indicating 
end of stream. This patch uses a byte mask for {{read()}} to always return the 
actual byte with value 0~255.

> Fix byte to integer casting in SimulatedFSDataset#simulatedByte
> ---------------------------------------------------------------
>
>                 Key: HDFS-8191
>                 URL: https://issues.apache.org/jira/browse/HDFS-8191
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Zhe Zhang
>            Assignee: Zhe Zhang
>            Priority: Minor
>         Attachments: HDFS-8191.000.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to