HDFS-17140. Revisit the BPOfferService.reportBadBlocks() method. (#5924). Contributed by Liangjun He.
Reviewed-by: Shilun Fan <slfan1989@apache.org> Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
This commit is contained in:
parent
7c941e00b4
commit
c2c6972f25
@ -291,9 +291,8 @@ public String toString() {
|
||||
void reportBadBlocks(ExtendedBlock block,
|
||||
String storageUuid, StorageType storageType) {
|
||||
checkBlock(block);
|
||||
ReportBadBlockAction rbbAction = new ReportBadBlockAction(block, storageUuid, storageType);
|
||||
for (BPServiceActor actor : bpServices) {
|
||||
ReportBadBlockAction rbbAction = new ReportBadBlockAction
|
||||
(block, storageUuid, storageType);
|
||||
actor.bpThreadEnqueue(rbbAction);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user