Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.util.TestRequestPoolService Class Reference
Collaboration diagram for com.cloudera.impala.util.TestRequestPoolService:

Public Member Functions

void cleanUp () throws Exception
 
void testPoolResolution () throws Exception
 
void testResolvePrincipalName () throws Exception
 
void testUserNoGroupsError () throws Exception
 
void testPoolAcls () throws Exception
 
void testPoolLimitConfigs () throws Exception
 
void testDefaultConfigs () throws Exception
 
void testUpdatingConfigs () throws Exception
 
void testModifiedConfigs () throws Exception
 
void testNullLlamaSite () throws Exception
 

Public Attributes

TemporaryFolder tempFolder = new TemporaryFolder()
 

Package Functions

void createPoolService (String allocationFile, String llamaConfFile) throws Exception
 

Private Member Functions

File getClasspathFile (String filename) throws URISyntaxException
 
void checkModifiedConfigResults () throws IOException
 
void checkPoolConfigResult (String pool, long expectedMaxRequests, long expectedMaxQueued, long expectedMaxMemUsage)
 

Private Attributes

RequestPoolService poolService_
 
File allocationConfFile_
 
File llamaConfFile_
 

Static Private Attributes

static final String ALLOCATION_FILE = "fair-scheduler-test.xml"
 
static final String ALLOCATION_FILE_MODIFIED = "fair-scheduler-test2.xml"
 
static final String ALLOCATION_FILE_EMPTY = "fair-scheduler-empty.xml"
 
static final String ALLOCATION_FILE_GROUP_RULE = "fair-scheduler-group-rule.xml"
 
static final String LLAMA_CONFIG_FILE = "llama-site-test.xml"
 
static final String LLAMA_CONFIG_FILE_MODIFIED = "llama-site-test2.xml"
 
static final String LLAMA_CONFIG_FILE_EMPTY = "llama-site-empty.xml"
 
static final long CHECK_INTERVAL_MS = 100L
 

Detailed Description

Unit tests for the user to pool resolution, authorization, and getting configuration parameters via RequestPoolService. Sets a configuration file and ensures the appropriate user to pool resolution, authentication, and pool configs are returned. This also tests that updating the files after startup causes them to be reloaded and the updated values are returned. TODO: Move tests to C++ to test the API that's actually used.

Definition at line 45 of file TestRequestPoolService.java.

Member Function Documentation

void com.cloudera.impala.util.TestRequestPoolService.checkPoolConfigResult ( String  pool,
long  expectedMaxRequests,
long  expectedMaxQueued,
long  expectedMaxMemUsage 
)
inlineprivate
void com.cloudera.impala.util.TestRequestPoolService.cleanUp ( ) throws Exception
inline
File com.cloudera.impala.util.TestRequestPoolService.getClasspathFile ( String  filename) throws URISyntaxException
inlineprivate
void com.cloudera.impala.util.TestRequestPoolService.testPoolResolution ( ) throws Exception
inline
void com.cloudera.impala.util.TestRequestPoolService.testResolvePrincipalName ( ) throws Exception
inline

Member Data Documentation

final String com.cloudera.impala.util.TestRequestPoolService.ALLOCATION_FILE_EMPTY = "fair-scheduler-empty.xml"
staticprivate
final String com.cloudera.impala.util.TestRequestPoolService.ALLOCATION_FILE_GROUP_RULE = "fair-scheduler-group-rule.xml"
staticprivate
final String com.cloudera.impala.util.TestRequestPoolService.ALLOCATION_FILE_MODIFIED = "fair-scheduler-test2.xml"
staticprivate
File com.cloudera.impala.util.TestRequestPoolService.allocationConfFile_
private
final long com.cloudera.impala.util.TestRequestPoolService.CHECK_INTERVAL_MS = 100L
staticprivate
final String com.cloudera.impala.util.TestRequestPoolService.LLAMA_CONFIG_FILE_EMPTY = "llama-site-empty.xml"
staticprivate
final String com.cloudera.impala.util.TestRequestPoolService.LLAMA_CONFIG_FILE_MODIFIED = "llama-site-test2.xml"
staticprivate
File com.cloudera.impala.util.TestRequestPoolService.llamaConfFile_
private
RequestPoolService com.cloudera.impala.util.TestRequestPoolService.poolService_
private
TemporaryFolder com.cloudera.impala.util.TestRequestPoolService.tempFolder = new TemporaryFolder()

Definition at line 69 of file TestRequestPoolService.java.


The documentation for this class was generated from the following file: