Package org.apache.hadoop.hbase.mapred
Class TestTableOutputFormatConnectionExhaust
java.lang.Object
org.apache.hadoop.hbase.mapred.TestTableOutputFormatConnectionExhaust
Spark creates many instances of TableOutputFormat within a single process. We need to make sure
we can have many instances and not leak connections. This test creates a few TableOutputFormats
and shouldn't fail due to ZK connection exhaustion.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
(package private) static final String
private static final org.slf4j.Logger
(package private) static final String
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
before()
static void
(package private) static void
openCloseTableOutputFormat
(int iter) Open and close a TableOutputFormat.void
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
TABLE
- See Also:
-
FAMILY
- See Also:
-
-
Constructor Details
-
TestTableOutputFormatConnectionExhaust
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
before
- Throws:
IOException
-
openCloseTableOutputFormat
Open and close a TableOutputFormat. The closing the RecordWriter should release HBase Connection (ZK) resources, and will throw exception if they are exhausted.- Throws:
IOException
-
testConnectionExhaustion
- Throws:
IOException
-