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

Running rollback on new-version namenode destroys namespace

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The following sequence leaves the namespace in an inconsistent/broken state:

      • format NN using 0.20 (or any prior release, probably)
      • run hdfs namenode -upgrade on 0.22. ^C the NN once it comes up.
      • run hdfs namenode -rollback on 0.22 (this should fail but doesn't!)

      This leaves the name directory in a state such that the version file claims it's an 0.20 namespace, but the fsimage is in 0.22 format. It then crashes when trying to start up.

        Attachments

        1. hdfs-1969.txt
          7 kB
          Todd Lipcon
        2. hdfs-1969.txt
          7 kB
          Todd Lipcon
        3. hdfs-1969.txt
          7 kB
          Todd Lipcon

          Issue Links

            Activity

              People

              • Assignee:
                tlipcon Todd Lipcon
                Reporter:
                tlipcon Todd Lipcon
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: