Class FillDiskCommandAction
java.lang.Object
org.apache.hadoop.hbase.chaos.actions.Action
org.apache.hadoop.hbase.chaos.actions.SudoCommandAction
org.apache.hadoop.hbase.chaos.actions.FillDiskCommandAction
Fill the disk on a random regionserver.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.chaos.actions.Action
Action.ActionContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
private static final org.slf4j.Logger
private final String
private final long
Fields inherited from class org.apache.hadoop.hbase.chaos.actions.SudoCommandAction
clusterManager, timeout
Fields inherited from class org.apache.hadoop.hbase.chaos.actions.Action
cluster, context, initialServers, initialStatus, KILL_DATANODE_TIMEOUT_DEFAULT, KILL_DATANODE_TIMEOUT_KEY, KILL_MASTER_TIMEOUT_DEFAULT, KILL_MASTER_TIMEOUT_KEY, KILL_NAMENODE_TIMEOUT_DEFAULT, KILL_NAMENODE_TIMEOUT_KEY, KILL_RS_TIMEOUT_DEFAULT, KILL_RS_TIMEOUT_KEY, KILL_ZK_NODE_TIMEOUT_DEFAULT, KILL_ZK_NODE_TIMEOUT_KEY, killDataNodeTimeout, killMasterTimeout, killNameNodeTimeout, killRsTimeout, killZkNodeTimeout, monkeyProps, skipMetaRS, START_DATANODE_TIMEOUT_DEFAULT, START_DATANODE_TIMEOUT_KEY, START_MASTER_TIMEOUT_DEFAULT, START_MASTER_TIMEOUT_KEY, START_NAMENODE_TIMEOUT_DEFAULT, START_NAMENODE_TIMEOUT_KEY, START_RS_TIMEOUT_DEFAULT, START_RS_TIMEOUT_KEY, START_ZK_NODE_TIMEOUT_DEFAULT, START_ZK_NODE_TIMEOUT_KEY, startDataNodeTimeout, startMasterTimeout, startNameNodeTimeout, startRsTimeout, startZkNodeTimeout
-
Constructor Summary
ConstructorDescriptionFillDiskCommandAction
(long size, long duration, String path, long timeout) Fill the disk on a random regionserver. -
Method Summary
Methods inherited from class org.apache.hadoop.hbase.chaos.actions.SudoCommandAction
init, perform
Methods inherited from class org.apache.hadoop.hbase.chaos.actions.Action
forceBalancer, getConf, getCurrentServers, killDataNode, killJournalNode, killMaster, killNameNode, killRs, killZKNode, modifyAllTableColumns, modifyAllTableColumns, resumeRs, setBalancer, startDataNode, startJournalNode, startMaster, startNameNode, startRs, startZKNode, stopRs, suspendRs, unbalanceRegions
-
Field Details
-
LOG
-
size
-
duration
-
path
-
-
Constructor Details
-
FillDiskCommandAction
Fill the disk on a random regionserver. Please note that the file will be created regardless of the set duration or timeout. So please use timeout and duration big enough to avoid complication caused by retries.- Parameters:
size
- size of the generated file in MB or fill the disk if set to 0duration
- the time this issue persists in millisecondspath
- the path to the generated filetimeout
- the timeout for executing required commands on the region server in milliseconds
-
-
Method Details
-
getLogger
Description copied from class:Action
Retrieve the instance'sLogger
, for use throughout the class hierarchy. -
localPerform
- Specified by:
localPerform
in classSudoCommandAction
- Throws:
IOException
-
getFillCommand
-
getClearCommand
-
getStopCommand
-