From bb87b4222c75cf1f3b7ac5e0323da0f5f21233ff Mon Sep 17 00:00:00 2001 From: Colin Patrick Mccabe Date: Tue, 27 Oct 2015 11:37:26 -0700 Subject: [PATCH] HDFS-9299. Give ReplicationMonitor a readable thread name (Staffan Friberg via Colin P. McCabe) (cherry picked from commit fe93577faf49ceb2ee47a7762a61625313ea773b) --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop/hdfs/server/blockmanagement/BlockManager.java | 1 + 2 files changed, 4 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index d19ba632181..c7a867af838 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -751,6 +751,9 @@ Release 2.8.0 - UNRELEASED HDFS-9259. Make SO_SNDBUF size configurable at DFSClient side for hdfs write scenario. (Mingliang Liu via mingma) + HDFS-9299. Give ReplicationMonitor a readable thread name (Staffan Friberg + via Colin P. McCabe) + OPTIMIZATIONS HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java index 74277efaa6c..11c556d9a34 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java @@ -468,6 +468,7 @@ public class BlockManager implements BlockStatsMXBean { public void activate(Configuration conf) { pendingReplications.start(); datanodeManager.activate(conf); + this.replicationThread.setName("ReplicationMonitor"); this.replicationThread.start(); mxBeanName = MBeans.register("NameNode", "BlockStats", this); }