[ 
https://issues.apache.org/jira/browse/HDFS-4349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konstantin Shvachko updated HDFS-4349:
--------------------------------------

    Attachment: BNCanRead.patch

This is a simple test that starts NameNode, BackupNode, and three DNs reporting 
to both NameNodes. It reads the same file via NN then via BN, and compares the 
results.
I also added an early return statement from 
{{EditLogBackupOutputStream.flushAndSync()}} in case there is nothing to flush. 
Otherwise the test occasionally hits the assert in {{getFirstReadyTxId()}}.
                
> Test reading files from BackupNode
> ----------------------------------
>
>                 Key: HDFS-4349
>                 URL: https://issues.apache.org/jira/browse/HDFS-4349
>             Project: Hadoop HDFS
>          Issue Type: Test
>          Components: namenode, test
>    Affects Versions: 2.0.2-alpha
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>         Attachments: BNCanRead.patch
>
>
> Add a test that ensures files are readable both from NameNode and BackupNode.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to