hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1550340 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityController.java
Date Thu, 12 Dec 2013 03:32:05 GMT
Author: tedyu
Date: Thu Dec 12 03:32:04 2013
New Revision: 1550340

URL: http://svn.apache.org/r1550340
Log:
HBASE-10134 Fix findbug warning in VisibilityController


Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityController.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityController.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityController.java?rev=1550340&r1=1550339&r2=1550340&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityController.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityController.java
Thu Dec 12 03:32:04 2013
@@ -956,11 +956,11 @@ public class VisibilityController extend
 
   private List<String> getSystemAndSuperUsers() throws IOException {
     User user = User.getCurrent();
-    LOG.debug("Current user name is "+user.getShortName());
     if (user == null) {
       throw new IOException("Unable to obtain the current user, "
           + "authorization checks for internal operations will not work correctly!");
     }
+    LOG.debug("Current user name is "+user.getShortName());
     String currentUser = user.getShortName();
     List<String> superUsers = Lists.asList(currentUser,
         this.conf.getStrings(AccessControlLists.SUPERUSER_CONF_KEY, new String[0]));



Mime
View raw message