Details

    • Reviewed

    Description

      Problem:
      When rolling upgrade fails, the cluster can either be downgraded or rolled back. With the current functionality in this feature branch, it is possible to downgrade namenode, while datanode is incorrectly rolled back. This does not affect the cluster state. The old blocks that appear back on the datanode due to rollback will be deleted. Similarly it is also possible to rollback namenode, while datanode is not rolled back. This can cause problem where old blocks do not appear back on the datanode and can result in missing blocks.

      Solution:
      I propose making the following changes:
      During rollback or downgrade, the entire cluster must be restarted. The datanodes always restore the deleted blocks on restart and go back to trash disabled mode. There is no need for datanodes to be started up -rollingUpgrade -rollback, anymore.

      1. On namenode downgrade, the restored blocks are deleted.
      2. On namenode rollback, the restored blocks will be retained and any newly created blocks (since the start of rolling upgrade) are deleted.

      This is much simpler operationally and solves the problem described above.

      Attachments

        1. HDFS-6005.patch
          51 kB
          Suresh Srinivas
        2. HDFS-6005.01.patch
          46 kB
          Arpit Agarwal
        3. HDFS-6005.02.patch
          46 kB
          Suresh Srinivas
        4. HDFS-6005.03.patch
          46 kB
          Suresh Srinivas

        Issue Links

          Activity

            People

              sureshms Suresh Srinivas
              sureshms Suresh Srinivas
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: