impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Behm (Code Review)" <>
Subject [Impala-CR](cdh5-trunk) IMPALA-2660: Respect auth_to_local configs from hdfs configs
Date Thu, 21 Apr 2016 22:13:24 GMT
Alex Behm has posted comments on this change.

Change subject: IMPALA-2660: Respect auth_to_local configs from hdfs configs

Patch Set 2:


Looks pretty sane to me, but I'll let Sailesh and Henry be the judge of that
File fe/src/main/java/com/cloudera/impala/authorization/

Line 32:   static {
Does this mean that changing the auth_to_local config requires an Impala service restart?
Is a restart generally required for changing these kind of security configurations?

Line 59:     } catch (IOException e) {
Can you add a comment here that describes at a high-level what is happening in the getShortName()
call? Are we communication with a service? Why can it throw an IOE?

Throwing the IO exception seems preferable here, then we at least know what happened and could
possibly add a sleep/retry mechanism etc. (not that you should do that now)

Line 70:   public String getShortNameForTesting(String rules) {
How about we handle the testing scenario as follows?

 1. Add a private user constructor that accepts a name and rules
2. Add a static function createTestUser(name, rules) that calls that constructor
3. Inside createTestUser() add a Preconditions.checkState(RuntimeEnv.isTestEnv());
File fe/src/test/java/com/cloudera/impala/analysis/

Line 1712:     // running the query with authtest/hostname@REALM.COM user which isconverted
to user
typo: which is

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I76485b83c14ba26f6fce66e5f83e8014667829e0
Gerrit-PatchSet: 2
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Bharath Vissapragada <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Bharath Vissapragada <>
Gerrit-Reviewer: Henry Robinson <>
Gerrit-Reviewer: Sailesh Mukil <>
Gerrit-HasComments: Yes

View raw message