Class StandbyCheckpointer
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.ha.StandbyCheckpointer
Thread which runs inside the NN when it's in Standby state,
periodically waking up to take a checkpoint of the namespace.
When it takes a checkpoint, it saves it to its local
storage and then uploads it to the remote NameNode.
-
Constructor Summary
ConstructorsConstructorDescriptionStandbyCheckpointer(org.apache.hadoop.conf.Configuration conf, FSNamesystem ns) -
Method Summary
-
Constructor Details
-
StandbyCheckpointer
public StandbyCheckpointer(org.apache.hadoop.conf.Configuration conf, FSNamesystem ns) throws IOException - Throws:
IOException
-
-
Method Details
-
start
public void start() -
stop
- Throws:
IOException
-
triggerRollbackCheckpoint
public void triggerRollbackCheckpoint() -
cancelAndPreventCheckpoints
public void cancelAndPreventCheckpoints(String msg) throws org.apache.hadoop.ha.ServiceFailedException Cancel any checkpoint that's currently being made, and prevent any new checkpoints from starting for the next minute or so.- Throws:
org.apache.hadoop.ha.ServiceFailedException
-
getLastCheckpointTime
@VisibleForTesting public long getLastCheckpointTime()
-