[ https://issues.apache.org/jira/browse/HDFS-923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14524662#comment-14524662 ]
Hadoop QA commented on HDFS-923: -------------------------------- \\ \\ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:red}-1{color} | patch | 0m 0s | The patch command could not apply the patch during dryrun. | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12440608/hdfs-923.patch | | Optional Tests | javac unit | | git revision | trunk / f1a152c | | Console output | https://builds.apache.org/job/PreCommit-HDFS-Build/10552/console | This message was automatically generated. > 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: libhdfs > Reporter: Ruyue Ma > Assignee: Ruyue Ma > 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 was sent by Atlassian JIRA (v6.3.4#6332)