DiskInfo() must return errDiskNotFound not internal errors (#18514)

This commit is contained in:
Harshavardhana
2023-11-24 09:07:14 -08:00
committed by GitHub
parent fbc6f3f6e8
commit 9032f49f25
3 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ func (client *storageRESTClient) DiskInfo(ctx context.Context, metrics bool) (in
// were attempted. This can lead to false success under certain conditions
// - this change attempts to avoid stale information if the underlying
// transport is already down.
return info, grid.ErrDisconnected
return info, errDiskNotFound
}
fetchDI := func(di *timedValue, metrics bool) {
di.TTL = time.Second