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

Hot archive tx apply #4603

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

SirTyson
Copy link
Contributor

@SirTyson SirTyson commented Jan 2, 2025

Description

Resolves #4584

This PR adds support for the Hot Archive to TX apply. Specifically, InvokeHostFunctionOp will check both the live BucketList and Hot Archive BucketList for archived entries. The RestoreFootprintOp can now restore entries from both the live BucketList and Hot Archive.

Additionally, restore meta has also changed for p23. The LEDGER_ENTRY_RESTORED type has been added for the restore op. When an entry is restored. both the LedgerEntry of the restored data and the corresponding TTL entry are emitted as LEDGER_ENTRY_RESTORED LedgerEntryChangeType. If the entry has not yet been evicted (such that the entry and it's TTL still exist in the live BucketList), the preexisting TTL value will be emitted as LEDGER_ENTRY_STATE. If the entry has been evicted such that the TTL value has been previously deleted, only a single change type of LEDGER_ENTRY_RESTORED will be emitted for the new value. For the data being restored, LEDGER_ENTRY_STATE is never emitted.

Rebased on #4585.

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

@SirTyson SirTyson force-pushed the hot-archive-tx-apply branch from e066c0c to 33770fc Compare January 2, 2025 21:37
@SirTyson SirTyson force-pushed the hot-archive-tx-apply branch from 33770fc to 7a04b44 Compare January 2, 2025 23:16
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.

Support the Hot Archive in TX apply
1 participant