Przeglądaj źródła

HDFS-7155. Bugfix in createLocatedFileStatus caused by bad merge. (Arpit Agarwal)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-6581.txt
arp 10 lat temu
rodzic
commit
081244fc8b

+ 1 - 0
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();
       final INodeFile fileNode = node.asFile();
       size = fileNode.computeFileSize(snapshot);
       size = fileNode.computeFileSize(snapshot);
       replication = fileNode.getFileReplication(snapshot);
       replication = fileNode.getFileReplication(snapshot);
+      blocksize = fileNode.getPreferredBlockSize();
       isLazyPersist = fileNode.getLazyPersistFlag();
       isLazyPersist = fileNode.getLazyPersistFlag();
 
 
       final boolean inSnapshot = snapshot != Snapshot.CURRENT_STATE_ID; 
       final boolean inSnapshot = snapshot != Snapshot.CURRENT_STATE_ID;