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(pruner, stages): logs for Prune stage #9520

Merged
merged 3 commits into from
Jul 15, 2024
Merged

Conversation

shekhirin
Copy link
Collaborator

@shekhirin shekhirin commented Jul 15, 2024

Closes #9515

The change itself is just this line

info!(target: "sync::stages::prune::exec", segments = ?result.segments, "Pruner has more data to prune");

But I also needed to introduce a better output for the Pruner::run, which required juggling the pruner types around two crates.

@shekhirin shekhirin changed the title feat(pruner, stages): Prune stage logs feat(pruner, stages): logs for Prune stage Jul 15, 2024
@shekhirin shekhirin changed the title feat(pruner, stages): logs for Prune stage chore(pruner, stages): logs for Prune stage Jul 15, 2024
@shekhirin shekhirin added C-enhancement New feature or request A-staged-sync Related to staged sync (pipelines and stages) A-observability Related to tracing, metrics, logs and other observability tools A-pruning Related to pruning or full node labels Jul 15, 2024
@shekhirin shekhirin changed the title chore(pruner, stages): logs for Prune stage feat(pruner, stages): logs for Prune stage Jul 15, 2024
@shekhirin shekhirin marked this pull request as ready for review July 15, 2024 15:59
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, optional suggestion

Comment on lines +14 to +18
impl From<PruneProgress> for PrunerOutput {
fn from(progress: PruneProgress) -> Self {
Self { progress, segments: Vec::new() }
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we do a new function for this instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yep, done

@shekhirin shekhirin enabled auto-merge July 15, 2024 16:34
@shekhirin shekhirin added this pull request to the merge queue Jul 15, 2024
Merged via the queue into main with commit 068220b Jul 15, 2024
32 checks passed
@shekhirin shekhirin deleted the alexey/prune-stage-logs branch July 15, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-observability Related to tracing, metrics, logs and other observability tools A-pruning Related to pruning or full node A-staged-sync Related to staged sync (pipelines and stages) C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prune stages progress
2 participants