Andrew Sherman has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/13078


Change subject: IMPALA-8446: Create a unit test for Admission Controller.
......................................................................

IMPALA-8446: Create a unit test for Admission Controller.

This test allows construction of white box tests that exercise Admission
Controller code.

The initial test case is a skeleton which does the following:
+ creates a RequestPoolService which reads some Admission Controller
  configuration files
+ checks that the configurations were read correctly
+ creates an Admission Controller object
+ creates a QuerySchedule for a query
+ tests if the query can be admitted by the Admission Controller
+ simulates activity in the cluster which consumes memory
+ tests that the earlier query cannot now be admitted by the Admission
  Controller.

TESTING:
Ran end-to-end tests cleanly and checked that the new test was
executed.

Change-Id: I8a840590b868f2df1a06f3f397b7b0fc2b29462c
---
M be/src/scheduling/CMakeLists.txt
A be/src/scheduling/admission-controller-test.cc
M be/src/scheduling/admission-controller.cc
M be/src/scheduling/admission-controller.h
M be/src/scheduling/query-schedule.cc
M be/src/scheduling/query-schedule.h
6 files changed, 250 insertions(+), 17 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/78/13078/1
--
To view, visit http://gerrit.cloudera.org:8080/13078
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8a840590b868f2df1a06f3f397b7b0fc2b29462c
Gerrit-Change-Number: 13078
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Sherman <[email protected]>
Gerrit-Reviewer: Bikramjeet Vig <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>

Reply via email to