hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaoyu Yao (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-11341) Adding unit test for SNN checkpoint with unfinalized rollingUpgrade
Date Fri, 13 Jan 2017 23:43:26 GMT
Xiaoyu Yao created HDFS-11341:

             Summary: Adding unit test for SNN checkpoint with unfinalized rollingUpgrade
                 Key: HDFS-11341
                 URL: https://issues.apache.org/jira/browse/HDFS-11341
             Project: Hadoop HDFS
          Issue Type: Test
            Reporter: Xiaoyu Yao

This is a followup work for HDFS-11209. 

The repro of HDFS-11209 is a bit tricky with MiniDFSCluter as we need to run old version of
NN with ""hdfs dfsadmin -rollingUpgrade prepare" to create a fsiamge with the old layoutversion.
Then do the upgrade and run the primary namenode(new software layout version) with "-rollingUpgrade
started" option and secondary namenode (new software layout version) as normal.

The software layout version is determined by static method from LayoutVersion class which
is not supported with mockito. It is possible to do that with powermock + mockito. 

This ticket is opened to add unit test for the scenarios that is fixed by HDFS-11209.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message