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

Running rollback on new-version namenode destroys namespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.22.0
    • 0.22.0
    • namenode
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: