[ https://issues.apache.org/jira/browse/HDFS-15351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17126748#comment-17126748 ]
David Mollitor commented on HDFS-15351: --------------------------------------- Thanks for pinging me [~hemanthboyina] a few times. I have been a bit all over the place so thanks for you persistence and patients. Probably should be using {{Collection}} classes instead of native arrays, but that's not for this ticket. {code:java} PendingBlockInfo remove = pendingReconstruction.remove(lastBlock); if (remove != null) { List<DatanodeStorageInfo> locations = remove.getTargets(); DatanodeStorageInfo.decrementBlocksScheduled(locations.toArray(new DatanodeStorageInfo[0])); } {code} > Blocks Scheduled Count was wrong on Truncate > --------------------------------------------- > > Key: HDFS-15351 > URL: https://issues.apache.org/jira/browse/HDFS-15351 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: hemanthboyina > Assignee: hemanthboyina > Priority: Major > Attachments: HDFS-15351.001.patch, HDFS-15351.002.patch, > HDFS-15351.003.patch > > > On truncate and append we remove the blocks from Reconstruction Queue > On removing the blocks from pending reconstruction , we need to decrement > Blocks Scheduled -- 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