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

feat: Snapshotter triggers segment snapshots #5287

Merged
merged 41 commits into from
Nov 14, 2023
Merged

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Nov 3, 2023

PR into #5283

  • Adds trigger [Snapshotter] logic: run_segment
  • Snapshot files are built in a temporary directory inside datadir/snapshots/temp, and moved to datadir/snapshots once finished. This is to handle abrupt terminations of the node. This temp directory is cleaned up whenever the node is started.

@joshieDo joshieDo added C-enhancement New feature or request A-static-files Related to static files labels Nov 3, 2023
@joshieDo joshieDo changed the title feat: snapshotter triggers segment snapshots feat: Snapshotter triggers segment snapshots Nov 3, 2023
@joshieDo joshieDo requested a review from rakita as a code owner November 8, 2023 16:32
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm, pending @shekhirin

&self,
block_range: Option<RangeInclusive<BlockNumber>>,
) -> RethResult<()> {
if let Some(block_range) = block_range {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can use let Some else return here

Copy link
Member

@rkrasiuk rkrasiuk left a comment

Choose a reason for hiding this comment

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

changes in isolation lgtm. still familiarizing with the rest of snapshot code

Base automatically changed from joshie/db-snap-provider2 to main November 14, 2023 21:05
@joshieDo joshieDo added this pull request to the merge queue Nov 14, 2023
Merged via the queue into main with commit 6ee481b Nov 14, 2023
25 checks passed
@joshieDo joshieDo deleted the joshie/db-snap-provider3 branch November 14, 2023 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-static-files Related to static files C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants