Skip to content

Commit

Permalink
Revert "HDFS-8623. Refactor NameNode handling of invalid, corrupt, an…
Browse files Browse the repository at this point in the history
…d under-recovery blocks. Contributed by Zhe Zhang."

This reverts commit de480d6.
  • Loading branch information
Jing9 committed Aug 6, 2015
1 parent fb1be0b commit 663eba0
Show file tree
Hide file tree
Showing 13 changed files with 284 additions and 360 deletions.
3 changes: 0 additions & 3 deletions hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,6 @@ Release 2.8.0 - UNRELEASED
HDFS-8651. Make hadoop-hdfs-project Native code -Wall-clean (Alan Burlison
via Colin P. McCabe)

HDFS-8623. Refactor NameNode handling of invalid, corrupt, and under-recovery
blocks. (Zhe Zhang via jing9)

HDFS-8653. Code cleanup for DatanodeManager, DatanodeDescriptor and
DatanodeStorageInfo. (Zhe Zhang via wang)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,23 +172,19 @@ public int getCapacity() {
public abstract int numNodes();

/**
* Add a {@link DatanodeStorageInfo} location for a block
* @param storage The storage to add
* @param reportedBlock The block reported from the datanode. This is only
* used by erasure coded blocks, this block's id contains
* information indicating the index of the block in the
* corresponding block group.
* Add a {@link DatanodeStorageInfo} location for a block.
*/
abstract boolean addStorage(DatanodeStorageInfo storage, Block reportedBlock);
abstract boolean addStorage(DatanodeStorageInfo storage);

/**
* Remove {@link DatanodeStorageInfo} location for a block
*/
abstract boolean removeStorage(DatanodeStorageInfo storage);


/**
* Replace the current BlockInfo with the new one in corresponding
* DatanodeStorageInfo's linked list.
* DatanodeStorageInfo's linked list
*/
abstract void replaceBlock(BlockInfo newBlock);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected BlockInfoContiguous(BlockInfo from) {
}

@Override
boolean addStorage(DatanodeStorageInfo storage, Block reportedBlock) {
boolean addStorage(DatanodeStorageInfo storage) {
return ContiguousBlockStorageOp.addStorage(this, storage);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public BlockInfoContiguous convertToCompleteBlock() {
}

@Override
boolean addStorage(DatanodeStorageInfo storage, Block reportedBlock) {
boolean addStorage(DatanodeStorageInfo storage) {
return ContiguousBlockStorageOp.addStorage(this, storage);
}

Expand Down
Loading

0 comments on commit 663eba0

Please sign in to comment.