From a54b4a7fc648ac1dbf099ce85519a48fcff7ec70 Mon Sep 17 00:00:00 2001 From: Colin Patrick Mccabe Date: Fri, 13 Feb 2015 15:11:14 -0800 Subject: [PATCH] HDFS-7430 backport addendum. Add missing change. (cmccabe) --- .../java/org/apache/hadoop/hdfs/server/datanode/DataNode.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java index 93e64d2808b..b6a84c31130 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java @@ -382,6 +382,7 @@ public class DataNode extends ReconfigurableBase final List dataDirs, final SecureResources resources) throws IOException { super(conf); + this.blockScanner = new BlockScanner(this, conf); this.lastDiskErrorCheck = 0; this.maxNumberOfBlocksToLog = conf.getLong(DFS_MAX_NUM_BLOCKS_TO_LOG_KEY, DFS_MAX_NUM_BLOCKS_TO_LOG_DEFAULT);