[ https://issues.apache.org/jira/browse/HDFS-3689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14292877#comment-14292877 ]
Tsz Wo Nicholas Sze commented on HDFS-3689: ------------------------------------------- - Add an if-statement to check targetRepl - src.getBlockReplication() != 0 before adding it to delta since src.computeFileSize() is a little bit expensive. - The if-condition below should check if delta <= 0 and the comment "if delta is <0" should be updated to "if delta is <= 0". {code} + if (!fsd.getFSNamesystem().isImageLoaded() || fsd.shouldSkipQuotaChecks()) { + // Do not check quota if delta is <0 or editlog is still being processed + return; {code} > Add support for variable length block > ------------------------------------- > > Key: HDFS-3689 > URL: https://issues.apache.org/jira/browse/HDFS-3689 > Project: Hadoop HDFS > Issue Type: New Feature > Components: datanode, hdfs-client, namenode > Affects Versions: 3.0.0 > Reporter: Suresh Srinivas > Assignee: Jing Zhao > Attachments: HDFS-3689.000.patch, HDFS-3689.001.patch, > HDFS-3689.002.patch, HDFS-3689.003.patch, HDFS-3689.003.patch, > HDFS-3689.004.patch, HDFS-3689.005.patch, HDFS-3689.006.patch, > HDFS-3689.007.patch, HDFS-3689.008.patch, HDFS-3689.008.patch, > HDFS-3689.009.patch, HDFS-3689.009.patch, editsStored > > > Currently HDFS supports fixed length blocks. Supporting variable length block > will allow new use cases and features to be built on top of HDFS. -- This message was sent by Atlassian JIRA (v6.3.4#6332)