Class ScmHAFinalizeUpgradeActionDatanode

java.lang.Object
org.apache.hadoop.ozone.container.upgrade.ScmHAFinalizeUpgradeActionDatanode
All Implemented Interfaces:
org.apache.hadoop.hdds.upgrade.HDDSUpgradeAction<DatanodeStateMachine>, org.apache.hadoop.ozone.upgrade.LayoutFeature.UpgradeAction<DatanodeStateMachine>

public class ScmHAFinalizeUpgradeActionDatanode extends Object implements org.apache.hadoop.hdds.upgrade.HDDSUpgradeAction<DatanodeStateMachine>
Action to run upgrade flow for SCM HA exactly once.
  • Constructor Details

    • ScmHAFinalizeUpgradeActionDatanode

      public ScmHAFinalizeUpgradeActionDatanode()
  • Method Details

    • execute

      public void execute(DatanodeStateMachine dsm) throws Exception
      Specified by:
      execute in interface org.apache.hadoop.ozone.upgrade.LayoutFeature.UpgradeAction<DatanodeStateMachine>
      Throws:
      Exception
    • upgradeVolume

      public static boolean upgradeVolume(StorageVolume volume, String clusterID)
      Upgrade the specified volume to be compatible with SCM HA layout feature.
      Returns:
      true if the volume upgrade succeeded, false otherwise.