Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[querier] s3: add getObject retry #4453

Merged
merged 13 commits into from
Oct 25, 2021
Prev Previous commit
Next Next commit
[querier] s3: add getObject retry #4452
  • Loading branch information
liguozhong committed Oct 11, 2021
commit ba6b430331c1b2de404796ed2ab3d0b3f544e9e1
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()
DylanGuedes marked this conversation as resolved.
Show resolved Hide resolved
for retries.Ongoing() {
err = instrument.CollectedRequest(ctx, "S3.GetObject", s3RequestDuration, instrument.ErrorCode, func(ctx context.Context) error {
var err error
DylanGuedes marked this conversation as resolved.
Show resolved Hide resolved
Expand Down