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 he...@apache.org on 2021/04/14 06:31:08 UTC
[hadoop] branch branch-3.3 updated: HADOOP-17613. Log not flushed
fully when daemon shutdown. Contributed by Renukaprasad C.
This is an automated email from the ASF dual-hosted git repository.
hexiaoqiao pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new a3cff87 HADOOP-17613. Log not flushed fully when daemon shutdown. Contributed by Renukaprasad C.
a3cff87 is described below
commit a3cff8776a2091e5bedfd178942d3525597e567a
Author: He Xiaoqiao <he...@apache.org>
AuthorDate: Wed Apr 7 12:18:23 2021 +0800
HADOOP-17613. Log not flushed fully when daemon shutdown. Contributed by Renukaprasad C.
---
.../hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java
index 9e7b36f..4fe09a9 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java
@@ -41,6 +41,7 @@ import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.net.NetUtils;
+import org.apache.log4j.LogManager;
import org.apache.hadoop.thirdparty.com.google.common.base.Preconditions;
import org.apache.hadoop.thirdparty.com.google.common.net.InetAddresses;
@@ -752,6 +753,7 @@ public class StringUtils {
public void run() {
LOG.info(toStartupShutdownString("SHUTDOWN_MSG: ", new String[]{
"Shutting down " + classname + " at " + hostname}));
+ LogManager.shutdown();
}
}, SHUTDOWN_HOOK_PRIORITY);
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org