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

Fix upper bound issue in CalculatePrefixSize #2223

Merged
merged 6 commits into from
Dec 17, 2024
Merged

Conversation

weiihann
Copy link
Contributor

@weiihann weiihann commented Oct 17, 2024

Description

This PR modifies the db size command to also check for leftover key-value pairs in the database. It also fixes an upper bound bug as the UpperBound iterator option is exclusive, not inclusive.

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

Attention: Patch coverage is 64.51613% with 11 lines in your changes missing coverage. Please review.

Project coverage is 74.36%. Comparing base (a9d11d4) to head (15c33bc).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
cmd/juno/dbcmd.go 42.85% 6 Missing and 2 partials ⚠️
db/pebble/db.go 82.35% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2223      +/-   ##
==========================================
- Coverage   74.41%   74.36%   -0.05%     
==========================================
  Files         109      109              
  Lines       11493    11519      +26     
==========================================
+ Hits         8552     8566      +14     
- Misses       2277     2285       +8     
- Partials      664      668       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@weiihann weiihann force-pushed the weiihann/refactor-db-size branch 2 times, most recently from 9b0bd9c to f6d9cef Compare October 17, 2024 08:51
Copy link
Contributor

This pull request is stale because it has been open 35 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the Stale label Dec 17, 2024
@weiihann weiihann force-pushed the weiihann/refactor-db-size branch from 1ecb18d to d94df24 Compare December 17, 2024 01:57
@weiihann weiihann changed the title Refactor db size command Fix upper bound issue in CalculatePrefixSize Dec 17, 2024
@weiihann weiihann force-pushed the weiihann/refactor-db-size branch from f34b203 to e4b412b Compare December 17, 2024 09:19
Copy link
Contributor

@pnowosie pnowosie left a comment

Choose a reason for hiding this comment

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

Small hint

db/pebble/db.go Outdated Show resolved Hide resolved
weiihann and others added 2 commits December 17, 2024 18:01
Co-authored-by: Pawel Nowosielski <[email protected]>
Signed-off-by: Ng Wei Han <[email protected]>
@weiihann weiihann merged commit 71c7ae9 into main Dec 17, 2024
13 checks passed
@weiihann weiihann deleted the weiihann/refactor-db-size branch December 17, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants