Details
-
Test
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
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.