Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11341

Adding unit test for SNN checkpoint with unfinalized rollingUpgrade

    XMLWordPrintableJSON

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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xyao Xiaoyu Yao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: