Skip to content

Commit dd74849

Browse files
committed
fix
1 parent ea04f95 commit dd74849

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void chooseTargets(BlockPlacementPolicy blockplacement,
6868
}
6969

7070
@Override
71-
void addTaskToDatanode(NumberReplicas numberReplicas) {
71+
boolean addTaskToDatanode(NumberReplicas numberReplicas) {
7272
for (int i = 0; i < getSrcNodes().length && i < getTargets().length; i++) {
7373
BlockInfoStriped stripedBlk = (BlockInfoStriped) getBlock();
7474
final byte blockIndex = srcIndices[i];
@@ -83,6 +83,7 @@ void addTaskToDatanode(NumberReplicas numberReplicas) {
8383
LOG.debug("Add replication task from source {} to "
8484
+ "target {} for EC block {}", source, target, targetBlk);
8585
}
86+
return true;
8687
}
8788

8889
@VisibleForTesting

0 commit comments

Comments
 (0)