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

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

The test seems to be flaky:

{code:java}
java.lang.AssertionError: Expecting java.io.IOException with text whereas it is 
under recovery but got :  Expected to find 'whereas it is under recovery' but 
got unexpected exception: 
org.apache.hadoop.ipc.RemoteException(java.io.IOException): Unexpected 
BlockUCState: BP-593126059-127.0.1.1-1566272533818:blk_1073741825_1001 is 
UNDER_RECOVERY but not UNDER_CONSTRUCTION
{code}

No need for intercepting the message, I guess.. you can just catch(IOE) and 
ignore

> 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
>
>
> 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