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

Feature/repacking 2.9 #684

Merged
merged 10 commits into from
Jan 8, 2025

Conversation

JamesPiechota
Copy link
Collaborator

No description provided.

Lev Berman and others added 10 commits January 7, 2025 02:52
This commit primarily moves the entropy-handling code out of
ar_chunk_storage and moves it into ar_entropy_storage.

In addition to code grouping, this change also made it easier
to remove some duplication in the entropy reading/writing code.
Previously we had a couple bugs when writing/reading entropy namely:
- occasionally we include the chunk offset in the entropy blob
- occasionally we forgot to write the chunk offset when writing
  entropy or an enciphered chunk
- occasionally we forgot to write the proofs for a replica.2.9 chunk

With this refactoring we've removed a number of redundant code paths -
in particular the code paths that were missing one of the steps
mentioned above.

Hopefully this makes it easier to keep the many different chunk
read/write paths in sync going forward.

There is at least one more refactoring we can do later: remove
the duplication between `record_chunk` and `record_entropy`
Also make sure that unit tests don't block replica.2.9 syncing
but e2e tests do.
@JamesPiechota JamesPiechota changed the base branch from master to release/N.2.9.0-early-adopter January 8, 2025 16:53
@JamesPiechota JamesPiechota merged commit 01d938a into release/N.2.9.0-early-adopter Jan 8, 2025
2 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.

1 participant