Skip to content

Commit 663eba0

Browse files
committed
Revert "HDFS-8623. Refactor NameNode handling of invalid, corrupt, and under-recovery blocks. Contributed by Zhe Zhang."
This reverts commit de480d6.
1 parent fb1be0b commit 663eba0

File tree

13 files changed

+284
-360
lines changed

13 files changed

+284
-360
lines changed

hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,9 +689,6 @@ Release 2.8.0 - UNRELEASED
689689
HDFS-8651. Make hadoop-hdfs-project Native code -Wall-clean (Alan Burlison
690690
via Colin P. McCabe)
691691

692-
HDFS-8623. Refactor NameNode handling of invalid, corrupt, and under-recovery
693-
blocks. (Zhe Zhang via jing9)
694-
695692
HDFS-8653. Code cleanup for DatanodeManager, DatanodeDescriptor and
696693
DatanodeStorageInfo. (Zhe Zhang via wang)
697694

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockInfo.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,23 +172,19 @@ public int getCapacity() {
172172
public abstract int numNodes();
173173

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

184179
/**
185180
* Remove {@link DatanodeStorageInfo} location for a block
186181
*/
187182
abstract boolean removeStorage(DatanodeStorageInfo storage);
188183

184+
189185
/**
190186
* Replace the current BlockInfo with the new one in corresponding
191-
* DatanodeStorageInfo's linked list.
187+
* DatanodeStorageInfo's linked list
192188
*/
193189
abstract void replaceBlock(BlockInfo newBlock);
194190

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockInfoContiguous.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected BlockInfoContiguous(BlockInfo from) {
4545
}
4646

4747
@Override
48-
boolean addStorage(DatanodeStorageInfo storage, Block reportedBlock) {
48+
boolean addStorage(DatanodeStorageInfo storage) {
4949
return ContiguousBlockStorageOp.addStorage(this, storage);
5050
}
5151

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockInfoUnderConstructionContiguous.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public BlockInfoContiguous convertToCompleteBlock() {
6969
}
7070

7171
@Override
72-
boolean addStorage(DatanodeStorageInfo storage, Block reportedBlock) {
72+
boolean addStorage(DatanodeStorageInfo storage) {
7373
return ContiguousBlockStorageOp.addStorage(this, storage);
7474
}
7575

0 commit comments

Comments
 (0)