[ 
https://issues.apache.org/jira/browse/HDFS-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057799#comment-13057799
 ] 

Uma Maheswara Rao G commented on HDFS-2110:
-------------------------------------------

One more comment to add: 
         
   *copyFromOffset(in, out,singleSatisfiableRange.getFirst(contentLength),      
    singleLength, close);*

   this api will suppress the stream closure exceptions. 
 Before the behaviour is that user will get that stream close related 
exceptions also.

 

> Some StreamFile and ByteRangeInputStream cleanup
> ------------------------------------------------
>
>                 Key: HDFS-2110
>                 URL: https://issues.apache.org/jira/browse/HDFS-2110
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: name-node
>            Reporter: Eli Collins
>            Assignee: Eli Collins
>            Priority: Minor
>             Fix For: 0.23.0
>
>         Attachments: hdfs-2110-1.patch, hdfs-2110-2.patch, hdfs-2110-3.patch
>
>
> StreamFile#sendPartialData can be cleaned up, has some System.out.printlns, 
> no javadoc, and the byte copying method should be pulled out to IOUtils. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to