You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2015/10/06 22:40:11 UTC
[2/2] hadoop git commit: HADOOP-12284. UserGroupInformation doAs can
throw misleading exception (Aaron Dosset via stevel)
HADOOP-12284. UserGroupInformation doAs can throw misleading exception (Aaron Dosset via stevel)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/6d5713a8
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/6d5713a8
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/6d5713a8
Branch: refs/heads/trunk
Commit: 6d5713a8a84b5fdae9b371fb692a818352758bd5
Parents: 29a582a
Author: Steve Loughran <st...@apache.org>
Authored: Tue Oct 6 21:39:33 2015 +0100
Committer: Steve Loughran <st...@apache.org>
Committed: Tue Oct 6 21:39:53 2015 +0100
----------------------------------------------------------------------
hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++
.../java/org/apache/hadoop/security/UserGroupInformation.java | 5 ++++-
2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/6d5713a8/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index cfdb88d..f92d720 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -1124,6 +1124,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-11098. [JDK8] Max Non Heap Memory default changed between JDK7
and 8. (ozawa)
+ HADOOP-12284. UserGroupInformation doAs can throw misleading exception
+ (Aaron Dosset via stevel)
+
OPTIMIZATIONS
HADOOP-12051. ProtobufRpcEngine.invoke() should use Exception.toString()
http://git-wip-us.apache.org/repos/asf/hadoop/blob/6d5713a8/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
index 80a0898..b511494 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
@@ -1670,7 +1670,10 @@ public class UserGroupInformation {
if (LOG.isDebugEnabled()) {
LOG.debug("PrivilegedActionException as:" + this + " cause:" + cause);
}
- if (cause instanceof IOException) {
+ if (cause == null) {
+ throw new RuntimeException("PrivilegedActionException with no " +
+ "underlying cause. UGI [" + this + "]", pae);
+ } else if (cause instanceof IOException) {
throw (IOException) cause;
} else if (cause instanceof Error) {
throw (Error) cause;