[ 
https://issues.apache.org/jira/browse/HADOOP-4619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12648416#action_12648416
 ] 

Pete Wyckoff commented on HADOOP-4619:
--------------------------------------

man write shows:

{code}
       ssize_t write(int fd, const void *buf, size_t count);
{code}

so you are correct - should be size_t. I will fix that. Should also probably 
change hdfs.h tSize to be size_t if it is defined, else int64 - but should 
probably be a separate JIRA and not something to go into 0.19.1.

i will submit a new patch for this.

-- pete


> hdfs_write infinite loop when dfs fails and cannot write files > 2 GB
> ---------------------------------------------------------------------
>
>                 Key: HADOOP-4619
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4619
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Pete Wyckoff
>            Assignee: Pete Wyckoff
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: HADOOP-4619.txt, HADOOP-4619.txt, HADOOP-4619.txt
>
>
> 1. hdfs_write  does not check hdfsWrite return code so -1 return code is 
> ignored.
> 2. hdfs_write uses int for overall file length

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

Reply via email to