Package org.apache.hadoop.hbase.tool
Class TestCanaryTool
java.lang.Object
org.apache.hadoop.hbase.tool.TestCanaryTool
@Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestCanaryTool
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]private static final byte[]private org.apache.logging.log4j.core.Appenderprivate 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()voidtestBasicCanaryWorks(org.junit.jupiter.api.TestInfo testInfo) voidvoidtestCanaryRegionTaskReadAllCF(org.junit.jupiter.api.TestInfo testInfo) voidvoidtestCanaryStopsScanningAfterTimeout(org.junit.jupiter.api.TestInfo testInfo) When CanaryTool times out, it should stop scanning and shutdown quickly and gracefully.voidtestRawScanConfig(org.junit.jupiter.api.TestInfo testInfo) voidtestReadTableTimeouts(org.junit.jupiter.api.TestInfo testInfo) voidvoidtestRegionserverWithRegions(org.junit.jupiter.api.TestInfo testInfo) voidvoidvoidvoidprivate voidtestZookeeperCanaryWithArgs(String[] args)
-
Field Details
-
testingUtility
-
FAMILY
-
COLUMN
-
mockAppender
-
-
Constructor Details
-
TestCanaryTool
public TestCanaryTool()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testBasicZookeeperCanaryWorks
- Throws:
Exception
-
testZookeeperCanaryPermittedFailuresArgumentWorks
- Throws:
Exception
-
testBasicCanaryWorks
- Throws:
Exception
-
testCanaryStopsScanningAfterTimeout
@Test public void testCanaryStopsScanningAfterTimeout(org.junit.jupiter.api.TestInfo testInfo) throws Exception 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
@Test public void testCanaryRegionTaskReadAllCF(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-
testCanaryRegionTaskResult
- Throws:
Exception
-
testReadTableTimeouts
@Disabled @Test public void testReadTableTimeouts(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-
testWriteTableTimeout
- Throws:
Exception
-
testRegionserverNoRegions
- Throws:
Exception
-
testRegionserverWithRegions
@Test public void testRegionserverWithRegions(org.junit.jupiter.api.TestInfo testInfo) throws Exception - 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
-