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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic booleanupgradeVolume(StorageVolume volume, String clusterID) Upgrade the specified volume to be compatible with SCM HA layout feature.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.ozone.upgrade.LayoutFeature.UpgradeAction
name
-
Constructor Details
-
ScmHAFinalizeUpgradeActionDatanode
public ScmHAFinalizeUpgradeActionDatanode()
-
-
Method Details
-
execute
- Specified by:
executein interfaceorg.apache.hadoop.ozone.upgrade.LayoutFeature.UpgradeAction<DatanodeStateMachine>- Throws:
Exception
-
upgradeVolume
Upgrade the specified volume to be compatible with SCM HA layout feature.- Returns:
- true if the volume upgrade succeeded, false otherwise.
-