Package org.apache.hadoop.hbase.client
Class ClientPushbackTestBase
java.lang.Object
org.apache.hadoop.hbase.client.ClientPushbackTestBase
- Direct Known Subclasses:
TestAsyncClientPushback,TestClientPushback
Test that we can actually send and use region metrics to slowdown client writes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]private static final longprivate static final org.slf4j.Loggerprivate static final byte[]protected static final org.apache.hadoop.hbase.TableNameprotected static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprotected abstract org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicyprotected abstract org.apache.hadoop.hbase.client.MetricsConnectionprotected abstract org.apache.hadoop.hbase.client.ServerStatisticTrackerprotected abstract voidmutate(org.apache.hadoop.hbase.client.Put put) protected abstract voidmutate(org.apache.hadoop.hbase.client.Put put, AtomicLong endTime, CountDownLatch latch) protected abstract voidmutateRow(org.apache.hadoop.hbase.client.RowMutations mutations) static voidvoidvoid
-
Field Details
-
LOG
-
UTIL
-
tableName
-
family
-
qualifier
-
flushSizeBytes
- See Also:
-
-
Constructor Details
-
ClientPushbackTestBase
public ClientPushbackTestBase()
-
-
Method Details
-
setupCluster
- Throws:
Exception
-
cleanupCluster
- Throws:
Exception
-
getBackoffPolicy
protected abstract org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy getBackoffPolicy() throws IOException- Throws:
IOException
-
getStatisticsTracker
protected abstract org.apache.hadoop.hbase.client.ServerStatisticTracker getStatisticsTracker() throws IOException- Throws:
IOException
-
getConnectionMetrics
protected abstract org.apache.hadoop.hbase.client.MetricsConnection getConnectionMetrics() throws IOException- Throws:
IOException
-
mutate
- Throws:
IOException
-
mutate
protected abstract void mutate(org.apache.hadoop.hbase.client.Put put, AtomicLong endTime, CountDownLatch latch) throws IOException - Throws:
IOException
-
mutateRow
protected abstract void mutateRow(org.apache.hadoop.hbase.client.RowMutations mutations) throws IOException - Throws:
IOException
-
testClientTracksServerPushback
- Throws:
Exception
-
testMutateRowStats
- Throws:
IOException
-