HDFS-8428. Erasure Coding: Fix the NullPointerException when deleting file. Contributed by Yi Liu.

This commit is contained in:
Zhe Zhang 2015-05-19 17:25:27 -07:00
parent 91c81fdc24
commit 47ef869fa7
2 changed files with 7 additions and 4 deletions

View File

@ -235,3 +235,6 @@
(Rakesh R via waltersu4549) (Rakesh R via waltersu4549)
HDFS-8375. Add cellSize as an XAttr to ECZone. ( Vinayakumar B via zhz). HDFS-8375. Add cellSize as an XAttr to ECZone. ( Vinayakumar B via zhz).
HDFS-8428. Erasure Coding: Fix the NullPointerException when deleting file.
(Yi Liu via zhz).

View File

@ -3396,7 +3396,7 @@ public class BlockManager {
for (ReceivedDeletedBlockInfo rdbi : srdb.getBlocks()) { for (ReceivedDeletedBlockInfo rdbi : srdb.getBlocks()) {
switch (rdbi.getStatus()) { switch (rdbi.getStatus()) {
case DELETED_BLOCK: case DELETED_BLOCK:
removeStoredBlock(storageInfo, getStoredBlock(rdbi.getBlock()), node); removeStoredBlock(storageInfo, rdbi.getBlock(), node);
deleted++; deleted++;
break; break;
case RECEIVED_BLOCK: case RECEIVED_BLOCK: