Browse Source

HADOOP-10274 Lower the logging level from ERROR to WARN for UGI.doAs method (Takeshi Miao via stack)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.3@1561936 13f79535-47bb-0310-9956-ffa450edef68
Michael Stack 11 years ago
parent
commit
512070e064

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -266,6 +266,9 @@ Release 2.3.0 - UNRELEASED
     HADOOP-10086. User document for authentication in secure cluster.
     HADOOP-10086. User document for authentication in secure cluster.
     (Masatake Iwasaki via Arpit Agarwal)
     (Masatake Iwasaki via Arpit Agarwal)
 
 
+    HADOOP-10274 Lower the logging level from ERROR to WARN for UGI.doAs method
+    (Takeshi Miao via stack)
+
   OPTIMIZATIONS
   OPTIMIZATIONS
 
 
     HADOOP-10142. Avoid groups lookup for unprivileged users such as "dr.who"
     HADOOP-10142. Avoid groups lookup for unprivileged users such as "dr.who"

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java

@@ -1548,7 +1548,7 @@ public class UserGroupInformation {
       return Subject.doAs(subject, action);
       return Subject.doAs(subject, action);
     } catch (PrivilegedActionException pae) {
     } catch (PrivilegedActionException pae) {
       Throwable cause = pae.getCause();
       Throwable cause = pae.getCause();
-      LOG.error("PriviledgedActionException as:"+this+" cause:"+cause);
+      LOG.warn("PriviledgedActionException as:"+this+" cause:"+cause);
       if (cause instanceof IOException) {
       if (cause instanceof IOException) {
         throw (IOException) cause;
         throw (IOException) cause;
       } else if (cause instanceof Error) {
       } else if (cause instanceof Error) {