MAPREDUCE-3208. Fix NPE task/container log appenders. Contributed by liangzhwa.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1186542 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arun Murthy 2011-10-19 22:38:17 +00:00
parent 74748ec625
commit 7ca7fdadc4
3 changed files with 9 additions and 2 deletions
hadoop-mapreduce-project
CHANGES.txt
hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred
hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn

View File

@ -1697,6 +1697,9 @@ Release 0.23.0 - Unreleased
MAPREDUCE-2693. Fix NPE in job-blacklisting. (Hitesh Shah via acmurthy)
MAPREDUCE-3208. Fix NPE task/container log appenders. (liangzhwa via
acmurthy)
Release 0.22.0 - Unreleased
INCOMPATIBLE CHANGES

View File

@ -93,8 +93,10 @@ public class TaskLogAppender extends FileAppender {
}
public void flush() {
if (qw != null) {
qw.flush();
}
}
@Override
public synchronized void close() {

View File

@ -65,8 +65,10 @@ public class ContainerLogAppender extends FileAppender {
}
public void flush() {
if (qw != null) {
qw.flush();
}
}
@Override
public synchronized void close() {