Skip to content

Commit

Permalink
[querier] s3: add getObject retry grafana#4452
Browse files Browse the repository at this point in the history
  • Loading branch information
liguozhong committed Oct 11, 2021
1 parent 3a649f3 commit ba6b430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/chunk/aws/s3_storage_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (a *S3ObjectClient) GetObject(ctx context.Context, objectKey string) (io.Re
bucket := a.bucketFromKey(objectKey)

retries := backoff.New(ctx, a.cfg.BackoffConfig)
var err error = nil
err := ctx.Err()
for retries.Ongoing() {
err = instrument.CollectedRequest(ctx, "S3.GetObject", s3RequestDuration, instrument.ErrorCode, func(ctx context.Context) error {
var err error
Expand Down

0 comments on commit ba6b430

Please sign in to comment.