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

Ayush Saxena commented on HDFS-14741:
-------------------------------------

Thanx [~xuzq_zander] for the patch
There is no functional disadvantage in the test going this way. The test seems 
to cover the fix. So I am Ok with it. 
Anyway will {{IOUtils.closeStream(fsDataOutputStream);}} work instead, try 
catch in finally?


> RBF: RecoverLease should be return false when the file is open in multiple 
> destination
> --------------------------------------------------------------------------------------
>
>                 Key: HDFS-14741
>                 URL: https://issues.apache.org/jira/browse/HDFS-14741
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: rbf
>            Reporter: xuzq
>            Assignee: xuzq
>            Priority: Major
>         Attachments: HDFS-14741-trunk-001.patch, HDFS-14741-trunk-002.patch, 
> HDFS-14741-trunk-003.patch, HDFS-14741-trunk-004.patch
>
>
> RecoverLease should be return false when the file is open or be writing in 
> multiple destinations.
> Liks this:
> Mount point has multiple destination(ns0 and ns1).
> And the file is in ns0 but it is be writing, ns1 doesn't has this file.
> In this case *recoverLease* should return false instead of throw 
> FileNotFoundException.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to