mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
do not count context canceled as timeout errors (#18975)
This commit is contained in:
parent
7aa00bff89
commit
6f16d1cb2c
@ -745,10 +745,9 @@ func (p *xlStorageDiskIDCheck) updateStorageMetrics(s storageMetric, paths ...st
|
||||
errFaultyDisk,
|
||||
errFaultyRemoteDisk,
|
||||
context.DeadlineExceeded,
|
||||
context.Canceled,
|
||||
}...) {
|
||||
p.totalErrsAvailability.Add(1)
|
||||
if errors.Is(err, context.DeadlineExceeded) || errors.Is(err, context.Canceled) {
|
||||
if errors.Is(err, context.DeadlineExceeded) {
|
||||
p.totalErrsTimeout.Add(1)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user