Add active disk health checks (#17539)

Add check every 2 minutes to see if a write+read operation can complete.

If disk is unresponsive for 2 minutes or returns errFaultyDisk, take it offline.
This commit is contained in:
Klaus Post
2023-07-13 11:41:55 -07:00
committed by GitHub
parent 183428db03
commit 4f89e5bba9
5 changed files with 89 additions and 6 deletions

View File

@@ -130,7 +130,7 @@ func newXLStorageTestSetup(tb testing.TB) (*xlStorageDiskIDCheck, string, error)
return nil, "", err
}
disk := newXLStorageDiskIDCheck(storage)
disk := newXLStorageDiskIDCheck(storage, false)
disk.SetDiskID("da017d62-70e3-45f1-8a1a-587707e69ad1")
return disk, diskPath, nil
}