From 50177fae9fcdeb47012a15f0d4bfd78e88e55fc7 Mon Sep 17 00:00:00 2001 From: zhumingze Date: Thu, 10 Jul 2025 16:11:15 +0800 Subject: [PATCH] fix(master): Optimize the judgment conditions when the bad disk is automatically decommission . #1000223743 Signed-off-by: zhumingze --- master/cluster.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/master/cluster.go b/master/cluster.go index b51f332e9..f6e292b8c 100644 --- a/master/cluster.go +++ b/master/cluster.go @@ -5222,11 +5222,6 @@ func (c *Cluster) handleDataNodeBadDisk(dataNode *DataNode) { retry := c.RetryDecommissionDisk(dataNode.Addr, disk.DiskPath) partitions := dataNode.badPartitions(disk.DiskPath, c, false) totalDpCnt := len(partitions) - if totalDpCnt == 0 && !retry { - // msg := fmt.Sprintf("disk(%v_%v) can be removed", dataNode.Addr, disk.DiskPath) - // auditlog.LogMasterOp("DiskDecommission", msg, nil) - continue - } var ratio float64 if totalDpCnt != 0 { ratio = float64(len(disk.DiskErrPartitionList)) / float64(totalDpCnt)