mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(master): special replica dp with raftForce hungs in checking status of new replica
Signed-off-by: chihe <chihe@oppo.com>
This commit is contained in:
parent
eedea5771e
commit
3bd78424ba
@ -116,7 +116,8 @@ func (c *Cluster) checkDiskRecoveryProgress() {
|
||||
}
|
||||
if newReplica.isRepairing() {
|
||||
log.LogInfof("[checkDiskRecoveryProgress] dp(%v) new replica(%v) report time(%v) is repairing", partition.PartitionID, newReplica.Addr, time.Unix(newReplica.ReportTime, 0))
|
||||
if !partition.isSpecialReplicaCnt() {
|
||||
// special replica with force still need to check status of new replica here
|
||||
if !partition.isSpecialReplicaCnt() || (partition.isSpecialReplicaCnt() && partition.DecommissionRaftForce == true) {
|
||||
masterNode, _ := partition.getReplica(partition.Hosts[0])
|
||||
duration := time.Unix(masterNode.ReportTime, 0).Sub(time.Unix(newReplica.ReportTime, 0))
|
||||
if math.Abs(duration.Minutes()) > 10 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user