-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HADOOP-18958. UserGroupInformation debug log improve.
- Loading branch information
1 parent
2e712cc
commit ac6b742
Showing
3 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1148,6 +1148,17 @@ public static String getStackTrace(Thread t) { | |
return str.toString(); | ||
} | ||
|
||
/** | ||
* Get stack trace from throwable exception. | ||
*/ | ||
public static String getStackTrace(Throwable t) { | ||
Check failure on line 1154 in hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java ASF Cloudbees Jenkins ci-hadoop / Apache Yetushadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java#L1154
Check failure on line 1154 in hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java ASF Cloudbees Jenkins ci-hadoop / Apache Yetushadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java#L1154
|
||
StringBuilder str = new StringBuilder(); | ||
for (StackTraceElement e : t.getStackTrace()) { | ||
str.append(e.toString() + "\n\t"); | ||
} | ||
return str.toString(); | ||
} | ||
|
||
/** | ||
* From a list of command-line arguments, remove both an option and the | ||
* next argument. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters