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

storage-bigtable: Upload entries #34099

Merged
merged 5 commits into from
Nov 28, 2023

Conversation

CriesofCarrots
Copy link
Contributor

@CriesofCarrots CriesofCarrots commented Nov 15, 2023

Problem

Blocks stored on bigtable are flattened, so they don't include the entry data that would allow block hashes to be verified.
Other historical ledger archives (like foundation storage buckets and Old Faithful) do include entry data, but it would provide additional redundancy if the bigtable store were made complete.

Summary of Changes

Add entries table to default bigtable setup
Upload entry summary data in bigtable_upload (used by both solana-ledger-tool bigtable upload and the BigtableUploadService). Entry-summary data is the entry data minus the actual transactions, plus a little extra indexing data to make it easy to regenerate entries from the flattened list of transactions. (This parallels geyser Entry notifications.)

Needs rebase on #34098
Handling for deleting entries (on block delete) and warehousing docs will be PRed separately.

Copy link

codecov bot commented Nov 16, 2023

Codecov Report

Merging #34099 (eef0f56) into master (6fc6a49) will decrease coverage by 0.1%.
The diff coverage is 0.0%.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34099     +/-   ##
=========================================
- Coverage    81.9%    81.8%   -0.1%     
=========================================
  Files         816      816             
  Lines      219781   219807     +26     
=========================================
- Hits       180009   179960     -49     
- Misses      39772    39847     +75     

Copy link
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

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

Code is looking good, just a few general questions

storage-bigtable/init-bigtable.sh Show resolved Hide resolved
storage-proto/proto/entries.proto Show resolved Hide resolved
Copy link
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

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

LGTM

@CriesofCarrots CriesofCarrots merged commit 573ec81 into solana-labs:master Nov 28, 2023
33 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.

2 participants