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

limit record size of manifest #2114

Merged
merged 6 commits into from
Apr 2, 2021
Merged

limit record size of manifest #2114

merged 6 commits into from
Apr 2, 2021

Conversation

sir-sigurd
Copy link
Member

@sir-sigurd sir-sigurd commented Mar 17, 2021

TODO


def dumps(obj):
data = json_encode(obj).encode()
if len(data) > MAX_MANIFEST_RECORD_SIZE:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should set this limit on the size of user metadata, but then we need to be sure that we have enough space for our own data.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are doing it right: we should measure the TOTAL size of the row because that's what S3 select will care about.

@codecov
Copy link

codecov bot commented Mar 17, 2021

Codecov Report

Merging #2114 (a4049b9) into master (ba4b247) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2114      +/-   ##
==========================================
+ Coverage   46.26%   46.33%   +0.07%     
==========================================
  Files         430      430              
  Lines       20581    20608      +27     
  Branches     2418     2418              
==========================================
+ Hits         9521     9548      +27     
  Misses      10098    10098              
  Partials      962      962              
Flag Coverage Δ
api-python 89.78% <100.00%> (+0.05%) ⬆️
catalog 16.18% <ø> (ø)
lambda 93.03% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
api/python/quilt3/packages.py 92.99% <100.00%> (+0.11%) ⬆️
api/python/tests/integration/test_packages.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba4b247...a4049b9. Read the comment docs.

akarve
akarve previously approved these changes Mar 24, 2021

def dumps(obj):
data = json_encode(obj).encode()
if len(data) > MAX_MANIFEST_RECORD_SIZE:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are doing it right: we should measure the TOTAL size of the row because that's what S3 select will care about.

api/python/quilt3/packages.py Outdated Show resolved Hide resolved
@sir-sigurd sir-sigurd force-pushed the manifest-row-size-limit branch 6 times, most recently from 359b8af to 65945d9 Compare April 1, 2021 16:54
@sir-sigurd sir-sigurd marked this pull request as ready for review April 1, 2021 16:56
api/python/quilt3/packages.py Outdated Show resolved Hide resolved
@sir-sigurd sir-sigurd merged commit 0baf070 into master Apr 2, 2021
@sir-sigurd sir-sigurd deleted the manifest-row-size-limit branch April 2, 2021 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants