diff --git a/pkg/storage/stores/shipper/bloomshipper/client.go b/pkg/storage/stores/shipper/bloomshipper/client.go index ebc620a0204f..d5d981cddb9e 100644 --- a/pkg/storage/stores/shipper/bloomshipper/client.go +++ b/pkg/storage/stores/shipper/bloomshipper/client.go @@ -233,7 +233,11 @@ func (b *BloomClient) PutBlocks(ctx context.Context, blocks []Block) ([]Block, e key := createBlockObjectKey(block.Ref) objectClient := b.periodicObjectClients[period] - block.Data.Seek(0, 0) + _, err = block.Data.Seek(0, 0) + if err != nil { + return fmt.Errorf("error uploading block file: %w", err) + } + err = objectClient.PutObject(ctx, key, block.Data) if err != nil { return fmt.Errorf("error uploading block file: %w", err)