From 081244fc8b66c4c6b4ce604e6cf21d9d473adad3 Mon Sep 17 00:00:00 2001 From: arp Date: Fri, 26 Sep 2014 16:30:47 -0700 Subject: [PATCH] HDFS-7155. Bugfix in createLocatedFileStatus caused by bad merge. (Arpit Agarwal) Conflicts: hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-6581.txt --- .../java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java index c2dfeaee2b1..56f9045ec93 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java @@ -2464,6 +2464,7 @@ public class FSDirectory implements Closeable { final INodeFile fileNode = node.asFile(); size = fileNode.computeFileSize(snapshot); replication = fileNode.getFileReplication(snapshot); + blocksize = fileNode.getPreferredBlockSize(); isLazyPersist = fileNode.getLazyPersistFlag(); final boolean inSnapshot = snapshot != Snapshot.CURRENT_STATE_ID;