Class TestSecureBulkLoadManager
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestSecureBulkLoadManager
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
A trick is used to make sure server-side failures( if any ) not being covered up by a client retry. -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static byte[]
private static org.apache.hadoop.conf.Configuration
private Thread
private static byte[]
private static byte[]
private static byte[]
private static byte[]
private Thread
private static final org.slf4j.Logger
private static byte[]
private static org.apache.hadoop.hbase.TableName
protected static final HBaseTestingUtility
protected Boolean
private static byte[]
private static byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Boolean>
data()
private void
doBulkloadWithoutRetry
(org.apache.hadoop.fs.Path dir) private void
prepareHFile
(org.apache.hadoop.fs.Path dir, byte[] key, byte[] value) void
setUp()
void
tearDown()
void
After a secure bulkload finished , there is a clean-up for FileSystems used in the bulkload.
-
Field Details
-
CLASS_RULE
-
LOG
-
TABLE
-
FAMILY
-
COLUMN
-
key1
-
key2
-
key3
-
value1
-
value3
-
SPLIT_ROWKEY
-
ealierBulkload
-
laterBulkload
-
testUtil
-
useFileBasedSFT
-
conf
-
-
Constructor Details
-
TestSecureBulkLoadManager
-
-
Method Details
-
data
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testForRaceCondition
After a secure bulkload finished , there is a clean-up for FileSystems used in the bulkload. Sometimes, FileSystems used in the finished bulkload might also be used in other bulkload calls, or there are other FileSystems created by the same user, they could be closed by a FileSystem.closeAllForUGI call. So during the clean-up, those FileSystems need to be used later can not get closed ,or else a race condition occurs. testForRaceCondition tests the case that two secure bulkload calls from the same UGI go into two different regions and one bulkload finishes earlier when the other bulkload still needs its FileSystems, checks that both bulkloads succeed.- Throws:
Exception
-
doBulkloadWithoutRetry
- Throws:
Exception
-
prepareHFile
- Throws:
Exception
-