Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1969

Running rollback on new-version namenode destroys namespace

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker 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.

      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

          Todd Lipcon created issue -
          Todd Lipcon made changes -
          Field Original Value New Value
          Assignee Todd Lipcon [ tlipcon ]
          Todd Lipcon made changes -
          Attachment hdfs-1969.txt [ 12479877 ]
          Todd Lipcon made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Todd Lipcon made changes -
          Attachment hdfs-1969.txt [ 12479950 ]
          Todd Lipcon made changes -
          Attachment hdfs-1969.txt [ 12481413 ]
          Todd Lipcon made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Resolution Fixed [ 1 ]
          Konstantin Shvachko made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Suresh Srinivas made changes -
          Link This issue relates to HDFS-3393 [ HDFS-3393 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development