Package org.apache.hadoop.hbase
package org.apache.hadoop.hbase
-
ClassDescriptionTest case that uses multiple threads to read and write multifamily rows into a table, verifying that reads never see partially-complete writes.A test tool that uses multiple threads to read and write multifamily rows into a table, verifying that reads never see partially-complete writesThread that does single-row reads in a table, looking for partially completed rows.Thread that does random full-row writes into a table.Thread that does full scans of the table looking for any partially completed rows.A class that finds a set of classes that are locally accessible (from .class or .jar files), and satisfy the conditions that are imposed by name and class filters provided by the user.ClassFinder that is pre-configured with filters that will only allow test classes.Filters both test classes and anything in the hadoop-compat modulesA
TestRule
that clears all user namespaces and tablesbefore
the test executes.ARule
that manages the lifecycle of an instance ofAsyncConnection
.Overrides commands to make use of coprocessor where possible.Manages the interactions with an already deployed distributed cluster (as opposed to a pseudo-distributed, or mini/local cluster).A compatibility shim layer for interacting with different versions of Hadoop.Compatibility shim layer implementation for Hadoop-2.The class level TestRule for all the tests.A RunListener to confirm that we have aHBaseClassTestRule
class rule for every test.This class defines methods that can help with managing HBase clusters from unit tests and system tests.A default cluster manager for HBase.Common helpers for testing HBase that do not depend on specific server/etc.Facility for testing HBase.A tracker for tracking and validating table rows generated withHBaseTestingUtil.loadTable(Table, byte[])
Helpers for testing HBase that do not depend on specific server/etc.Similar toHConstants
but for tests.This Integration Test verifies acid guarantees across column families by frequently writing values to rows with multiple column families and concurrently reading entire rows that expect all column families.An integration test to detect regressions in HBASE-7912.Base class for HBase integration tests that want to use the Chaos Monkey.Integration test that verifies Procedure V2.A base class for tests that do something with the cluster while runningLoadTestTool
to write and verify some data.A test class that does the same things as IntegrationTestIngest but with stripe compactions./** An Integration class for tests that does something with the cluster while runningLoadTestTool
to write and verify some data.Integration Test for MOB ingest.Facility for integration/system tests.Integration test that verifies lazy CF loading during scans by doing repeated scans with this feature while multiple threads are continuously writing values; and verifying the result.An integration test to detect regressions in HBASE-7220.An integration test that starts the cluster with three replicas for the meta It then creates a table, flushes the meta, kills the server holding the primary.An integration test to detect regressions in HBASE-22749.Test for comparing the performance impact of region replicas.Integration test for testing async wal replication to secondary region replicas.This extends MultiThreadedWriter to add a configurable delay to the keys written by the writer threads to become available to the MultiThradedReader threads.This extends MultiThreadedWriter to add a configurable delay to the keys written by the writer threads to become available to the MultiThradedReader threads.This class drives the Integration test suite execution.An implementation ofWaiter.ExplainingPredicate
that uses HamcrestMatcher
for both predicate evaluation and explanation.Mocking utility for common hbase:meta functionalityATestRule
that manages an instance of theSingleProcessHBaseCluster
.A builder for fluent composition of a newMiniClusterRule
.ARule
that manages a simple http server.A test thread that performs a repeating operation.A thread that can be added to a test context, and properly passes exceptions through.A tool to evaluating the lag between primary replica and secondary replica.Utility class to check the resources: - log them before and after each test method - check them against a minimum or maximum - check that they don't leak during the testListen to the test progress and check the usage of: threads open file descriptor max open file descriptorA ClusterManager implementation designed to control Cloudera Manager (http://www.cloudera.com) clusters via REST API.Receives shell commands from the client and executes them blindly.This class creates a single process HBase cluster.Subclass so can get at protected methods (none at moment).Options for starting up a testing cluster (including an hbase, dfs and zookeeper clusters) in test.Builder pattern for creating anStartTestingClusterOption
.A perf test which does large data ingestion using stripe compactions and regular compactions.Returns aTableName
based on currently running test method name.Checks tests are categorized.A Chore that will try to execute the initial chore a few times before succeeding.Test the ClusterStatus.These tests verify that the RPC timeouts ('hbase.client.operation.timeout' and 'hbase.client.scanner.timeout.period') work correctly using a modified Region Server which injects delays to get, scan and mutate operations.Tests the boot order indifference between regionserver and masterVerify that the ColumnFamilyDescriptor version is set correctly by default, hbase-site.xml, and user inputTests that one can implement their own RpcControllerFactory and expect it to successfully pass custom priority values to the server for all HTable calls.Test HBASE-3694 whether the GlobalMemStoreSize is the same as the summary of all the online region's MemStoreSizeTests HBaseClassTestRule.Test being able to edit hbase:meta.Test that an HBase cluster can run on top of an existing MiniDfsClusterTest our testing utility classMake sure we can spin up a HBTU without a hbase-site.xmlTesting, info servers are disabled.Test for the case where a regionserver going down has enough cycles to do damage to regions that have actually been assigned elsehwere.An override of HRegion that allows us park compactions in a holding pattern and then when appropriate for the test, allow them proceed again.An override of HRegion that allows us park compactions in a holding pattern and then when appropriate for the test, allow them proceed again.This tests whether ServerSocketChannel works over ipv6, which ZooKeeper depends on.Test case for JMX Connector Server.A private master class similar to that used by HMasterCommandLine when running in local mode.A private regionserver class with a dummy method for testing castsTestMetaTableAccessor
.TestMetaTableLocator
Test whether moved region cache is correctPort of old TestScanMultipleVersions, TestTimestamp and TestGetRowVersions from old testing framework toHBaseTestingUtil
.These tests are focused on testing how partial results appear to a client.Test whether region re-balancing works.Testcase for HBASE-20066Test HBase Writables serializationsTest that sundry operations internal to the region server are traced as expected.Test for theShellExecEndpointCoprocessor
.Tests for various kinds of TableNames.JUnit run listener which prints full thread dump into System.err in case a test is failed due to timeout.Tests user specifiable time stamps putting, getting and scanning.A class that provides a standard waitFor pattern See details at https://issues.apache.org/jira/browse/HBASE-7384Waiter.ExplainingPredicate<E extends Exception>A mixin interface, can be used withWaiter
to explain failed state.Waiter.Predicate<E extends Exception>A predicate 'closure' used by theWaiter.waitFor(Configuration, long, Predicate)
andWaiter.waitFor(Configuration, long, Predicate)
andWaiter.waitFor(Configuration, long, long, boolean, Predicate)
methods.