Skip to content

Commit 95f2d44

Browse files
authored
Raise object size serving cap (#60)
Was 20 MiB. We have Parquets that are easily 25 MiB and this is affecting attestation testing.
1 parent e956123 commit 95f2d44

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/eventrepo/eventrepo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,10 @@ func parseParquetRef(indexKey string) (bucket, objectKey string, rowOffset int64
389389
return "", objKey, rowOffset, nil
390390
}
391391

392-
// maxObjectSize is the maximum size of a single S3 object we'll read (10 MiB).
392+
// maxObjectSize is the maximum size of a single S3 object we'll read (50 MiB).
393393
// Objects larger than this are rejected to prevent OOM from corrupted or
394394
// malicious index keys pointing to oversized objects.
395-
const maxObjectSize = 10 << 20
395+
const maxObjectSize = 50 << 20
396396

397397
// getObjectFromS3 fetches the entire object from S3 (legacy per-file JSON path).
398398
func (s *Service) getObjectFromS3(ctx context.Context, key, bucketName string) ([]byte, error) {

0 commit comments

Comments
 (0)