Fang-Yu Rao has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/13349


Change subject: IMPALA-8541: Remove existing roles in order to not interfere 
with a test.
......................................................................

IMPALA-8541: Remove existing roles in order to not interfere with a test.

The test TestShortUsernameUsed() in AuthorizationTest.java would fail if the
current user is associated with some role granted the privilege to access some
databases, e.g., the database "functional".

Specifically, for the SQL statement "select * from alltypes", if the role is
already granted the privilege to access the database "functional", only
AnalysisException will be thrown. To address this issue, we remove all the
lingering roles before running this test.

Testing:
Passed all the tests in AuthorizationTest.java.

Change-Id: I7122ee0cc90eaf7d45c5637c28c9cdb59502967b
---
M fe/src/test/java/org/apache/impala/authorization/AuthorizationTest.java
1 file changed, 15 insertions(+), 0 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7122ee0cc90eaf7d45c5637c28c9cdb59502967b
Gerrit-Change-Number: 13349
Gerrit-PatchSet: 1
Gerrit-Owner: Fang-Yu Rao <fangyu....@cloudera.com>
Gerrit-Reviewer: Fang-Yu Rao <fangyu....@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fwij...@cloudera.com>

Reply via email to