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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to