Package org.apache.hadoop.hbase.tool
Class TestCanaryTool
java.lang.Object
org.apache.hadoop.hbase.tool.TestCanaryTool
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]private static final byte[]private org.apache.logging.log4j.core.Appenderorg.junit.rules.TestNameprivate HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringgetPageContent(URL url) private voidvoidsetUp()private static ExecutorServicestartCanaryToolInBackground(org.apache.hadoop.hbase.tool.CanaryTool.RegionStdOutSink sink, org.apache.hadoop.conf.Configuration configuration) voidtearDown()voidvoidvoidvoidvoidWhen CanaryTool times out, it should stop scanning and shutdown quickly and gracefully.voidvoidvoidvoidvoidvoidvoidvoidprivate voidtestZookeeperCanaryWithArgs(String[] args)
-
Field Details
-
CLASS_RULE
-
testingUtility
-
FAMILY
-
COLUMN
-
name
-
mockAppender
-
-
Constructor Details
-
TestCanaryTool
public TestCanaryTool()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testBasicZookeeperCanaryWorks
- Throws:
Exception
-
testZookeeperCanaryPermittedFailuresArgumentWorks
- Throws:
Exception
-
testBasicCanaryWorks
- Throws:
Exception
-
testCanaryStopsScanningAfterTimeout
When CanaryTool times out, it should stop scanning and shutdown quickly and gracefully. This test helps to confirm that threadpools do not continue executing work after the canary finishes. It also verifies sink behavior and measures correct failure counts in the sink.- Throws:
Exception- if it can't create a table, communicate with minicluster, or run the canary.
-
testCanaryRegionTaskReadAllCF
- Throws:
Exception
-
testCanaryRegionTaskResult
- Throws:
Exception
-
testReadTableTimeouts
- Throws:
Exception
-
testWriteTableTimeout
- Throws:
Exception
-
testRegionserverNoRegions
- Throws:
Exception
-
testRegionserverWithRegions
- Throws:
Exception
-
testRawScanConfig
- Throws:
Exception
-
runRegionserverCanary
- Throws:
Exception
-
testZookeeperCanaryWithArgs
- Throws:
Exception
-
testWebUI
- Throws:
Exception
-
testWebUIWithFailures
- Throws:
Exception
-
startCanaryToolInBackground
private static ExecutorService startCanaryToolInBackground(org.apache.hadoop.hbase.tool.CanaryTool.RegionStdOutSink sink, org.apache.hadoop.conf.Configuration configuration) -
getPageContent
- Throws:
IOExceptionInterruptedException
-