[ https://issues.apache.org/jira/browse/HDFS-14957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16969160#comment-16969160 ]
hemanthboyina commented on HDFS-14957: -------------------------------------- In INodeFile : for computeQuotaUsage {code:java} FileWithSnapshotFeature sf = getFileWithSnapshotFeature(); if (sf == null) { counts.add(storagespaceConsumed(bsp)); return counts; } FileDiffList fileDiffList = sf.getDiffs(); int last = fileDiffList.getLastSnapshotId(); {code} for calculating spaceConsumed , we consider only the files which exists in Snapshot for computeContentSummary which basically goes to -> storagespaceConsumedContiguous {code:java} if (sf == null) { blocks = Arrays.asList(getBlocks()); } else { // Collect all distinct blocks Set<BlockInfo> allBlocks = new HashSet<>(Arrays.asList(getBlocks())); DiffList<FileDiff> diffs = sf.getDiffs().asList(); {code} for calculating space consumed , we are cosidering file which exists in diff(In Snapshot) and also the file's getBlocks() I think the behaviour is wrong . Any suggestions ? > INodeReference Space Consumed was not same in QuotaUsage and ContentSummary > --------------------------------------------------------------------------- > > Key: HDFS-14957 > URL: https://issues.apache.org/jira/browse/HDFS-14957 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: hemanthboyina > Assignee: hemanthboyina > Priority: Major > Attachments: HDFS-14957.JPG > > > for INodeReferences , space consumed was different in QuotaUsage and Content > Summary -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org