hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruyue Ma (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HDFS-923) libhdfs hdfs_read example uses hdfsRead wrongly
Date Fri, 02 Apr 2010 10:08:27 GMT

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

Ruyue Ma updated HDFS-923:
--------------------------

    Status: Patch Available  (was: Open)

> libhdfs hdfs_read example uses hdfsRead wrongly
> -----------------------------------------------
>
>                 Key: HDFS-923
>                 URL: https://issues.apache.org/jira/browse/HDFS-923
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: contrib/libhdfs
>            Reporter: Ruyue Ma
>            Assignee: Ruyue Ma
>             Fix For: 0.21.0
>
>         Attachments: hdfs-923.patch
>
>
> In the examples of libhdfs,  the hdfs_read.c uses hdfsRead wrongly. 
> {noformat}
>     // read from the file
>     tSize curSize = bufferSize;
>     for (; curSize == bufferSize;) {
>         curSize = hdfsRead(fs, readFile, (void*)buffer, curSize);
>     }
> {noformat} 
> the condition curSize == bufferSize has problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message