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

Recover chunk_size in pg_info after restart #251

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Conversation

yuwmao
Copy link
Contributor

@yuwmao yuwmao commented Jan 6, 2025

chunk_size is not persisted in pg_sb, so set it manually during recovery.
Fix issue24.

@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.80%. Comparing base (1746bcc) to head (62ddea0).
Report is 31 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #251      +/-   ##
==========================================
+ Coverage   63.15%   63.80%   +0.64%     
==========================================
  Files          32       33       +1     
  Lines        1900     2434     +534     
  Branches      204      285      +81     
==========================================
+ Hits         1200     1553     +353     
- Misses        600      729     +129     
- Partials      100      152      +52     

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

Besroy
Besroy previously approved these changes Jan 6, 2025
Copy link
Contributor

@Besroy Besroy left a comment

Choose a reason for hiding this comment

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

LGTM

chunk_size is not persisted in pg_sb, so it is lost after restart.
@yuwmao
Copy link
Contributor Author

yuwmao commented Jan 7, 2025

We consider chunk_size to be a property of a pg, so add it to pg superblock.

Copy link
Collaborator

@JacksonYao287 JacksonYao287 left a comment

Choose a reason for hiding this comment

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

LGTM

@yuwmao yuwmao merged commit c3a24ec into eBay:main Jan 7, 2025
25 checks passed
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.

5 participants