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 @@ class BPOfferService {
|
|||||||
void reportBadBlocks(ExtendedBlock block,
|
void reportBadBlocks(ExtendedBlock block,
|
||||||
String storageUuid, StorageType storageType) {
|
String storageUuid, StorageType storageType) {
|
||||||
checkBlock(block);
|
checkBlock(block);
|
||||||
|
ReportBadBlockAction rbbAction = new ReportBadBlockAction(block, storageUuid, storageType);
|
||||||
for (BPServiceActor actor : bpServices) {
|
for (BPServiceActor actor : bpServices) {
|
||||||
ReportBadBlockAction rbbAction = new ReportBadBlockAction
|
|
||||||
(block, storageUuid, storageType);
|
|
||||||
actor.bpThreadEnqueue(rbbAction);
|
actor.bpThreadEnqueue(rbbAction);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user