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.ClusterManager is an api to manage servers in a distributed environment.Type of the service daemonARule
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).Test provides some very generic helpers which might be used across the testsMockito answer helper that triggers one latch as soon as the method is called, then waits on another before continuing.An Answer implementation that simply forwards all calls through to a delegate.An Answer implementation which sleeps for a random number of milliseconds between 0 and a configurable value before delegating to the real implementation of the method.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.Provides command strings for services to be executed by Shell.CommandProvider to manage the service using sbin/hadoop-* scripts.CommandProvider to manage the service using bin/hbase-* scriptsCommandProvider to manage the service using bin/zk* scripts.Common helpers for testing HBase that do not depend on specific server/etc.Deprecated.since 2.0.0 and will be removed in 3.0.0.Facility for testing HBase.A tracker for tracking and validating table rows generated withHBaseTestingUtility.loadTable(Table, byte[])
Helpers for testing HBase that do not depend on specific server/etc.This class runs performance benchmarks forHFile
.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.Custom LoadTestDataGenerator.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.Wraps the invocation ofPerformanceEvaluation
in aCallable
.Extract a descriptive statistic from aHistogram
.Record the results from a singlePerformanceEvaluation
job run.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 theMiniHBaseCluster
.A builder for fluent composition of a newMiniClusterRule
.This class creates a single process HBase cluster.Subclass so can get at protected methods (none at moment).Alternate shutdown hook.ARule
that manages a simple http server.Basic mock region server services.A test thread that performs a repeating operation.A thread that can be added to a test context, and properly passes exceptions through.Script used evaluating HBase performance and scalability.Base class for operations that are CAS-like; that read a value and then set it based off what they read.Describes a command.Enum for map metrics.MapReduce job that runs a performance evaluation client in each map task.Implementations can have their status set.Wraps up options passed toPerformanceEvaluation
.Code shared by PE tests.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 testClass to implement for each type of resource.Listen 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.Represents of the high-level health status of a subject in the cluster.Represents the configured run state of a role.A simple performance evaluation tool for single client and MR scans and snapshot scans.ScanPerformanceEvaluation.MyMapper<KEYOUT,VALUEOUT> Receives shell commands from the client and executes them blindly.Options for starting up a mini cluster (including an hbase, dfs and zookeeper clusters) in test.Builder pattern for creating anStartMiniClusterOption
.A perf test which does large data ingestion using stripe compactions and regular compactions.Returns aTableName
based on currently running test method name.Cell used in test.CellScannable used in test.CellScanner used in test.Checks tests are categorized.Lightweight ScheduledChore used primarily to fill the scheduling queue in testsA Chore that will try to execute the initial chore a few times before succeeding.Straight forward stopper implementation that is used by default when one is not providedSleeps for longer than the scheduled period.Test the ClusterStatus.Tests the boot order indifference between regionserver and masterTest 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.xmlDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 together withHColumnDescriptor
.Verify that the HColumnDescriptor version is set correctly by default, hbase-site.xml, and user inputDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 together withHTableDescriptor
.Testing, 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
.Thread that runs a MetaTableAccessor task until asked stop.Test MetaTableAccessor but without spinning up a cluster.TestMetaTableLocator
Test whether moved region cache is correctPort of old TestScanMultipleVersions, TestTimestamp and TestGetRowVersions from old testing framework toHBaseTestingUtility
.Simple helper class that just keeps track of whether or not its stopped.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.Wait for the underlying cluster to come up -- defined by meta being available.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.