Browse Source
remove errant logs for disconnected remote (#19793)
Signed-off-by: Harshavardhana <harsha@minio.io>
pull/19800/head
Harshavardhana
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
3 deletions
-
cmd/logging.go
-
cmd/metacache-server-pool.go
|
|
@ -17,7 +17,9 @@ func replLogOnceIf(ctx context.Context, err error, id string, errKind ...interfa |
|
|
|
} |
|
|
|
|
|
|
|
func iamLogIf(ctx context.Context, err error, errKind ...interface{}) { |
|
|
|
logger.LogIf(ctx, "iam", err, errKind...) |
|
|
|
if !errors.Is(err, grid.ErrDisconnected) { |
|
|
|
logger.LogIf(ctx, "iam", err, errKind...) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func iamLogEvent(ctx context.Context, msg string, args ...interface{}) { |
|
|
|
|
|
@ -28,6 +28,7 @@ import ( |
|
|
|
"sync" |
|
|
|
"time" |
|
|
|
|
|
|
|
"github.com/minio/minio/internal/grid" |
|
|
|
xioutil "github.com/minio/minio/internal/ioutil" |
|
|
|
) |
|
|
|
|
|
|
@ -133,8 +134,8 @@ func (z *erasureServerPools) listPath(ctx context.Context, o *listPathOptions) ( |
|
|
|
// request canceled, no entries to return
|
|
|
|
return entries, io.EOF |
|
|
|
} |
|
|
|
if !errors.Is(err, context.DeadlineExceeded) { |
|
|
|
// Report error once per bucket, but continue listing.
|
|
|
|
if !IsErr(err, context.DeadlineExceeded, grid.ErrDisconnected) { |
|
|
|
// Report error once per bucket, but continue listing.x
|
|
|
|
storageLogOnceIf(ctx, err, "GetMetacacheListing:"+o.Bucket) |
|
|
|
} |
|
|
|
o.Transient = true |
|
|
|