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:
Liangjun He 2023-09-06 20:19:04 +08:00 committed by GitHub
parent 7c941e00b4
commit c2c6972f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}