Skip to content

[Pruner] Enable pruner#3675

Merged
jolestar merged 11 commits into
mainfrom
open_pruner
Sep 4, 2025
Merged

[Pruner] Enable pruner#3675
jolestar merged 11 commits into
mainfrom
open_pruner

Conversation

@baichuan3

Copy link
Copy Markdown
Contributor

Summary

Summary about this PR

  • Closes #issue

@vercel

vercel Bot commented Aug 17, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rooch-portal-v2.1 Ready Ready Preview Comment Sep 4, 2025 11:35am
test-portal Ready Ready Preview Comment Sep 4, 2025 11:35am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
rooch Ignored Ignored Preview Sep 4, 2025 11:35am

@github-actions

github-actions Bot commented Aug 17, 2025

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions

github-actions Bot commented Aug 23, 2025

Copy link
Copy Markdown

Docker images for this PR are available:

  • ghcr.io/rooch-network/rooch:pr-3675
  • ghcr.io/rooch-network/rooch:pr-3675-127da5b
  • ghcr.io/rooch-network/rooch:pr-3675_debug
  • ghcr.io/rooch-network/rooch:pr-3675-127da5b_debug

Pull commands:

  • docker pull ghcr.io/rooch-network/rooch:pr-3675
  • docker pull ghcr.io/rooch-network/rooch:pr-3675-127da5b
  • docker pull ghcr.io/rooch-network/rooch:pr-3675_debug
  • docker pull ghcr.io/rooch-network/rooch:pr-3675-127da5b_debug

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables the pruner functionality in the Rooch blockchain testnet deployment and adds performance optimizations for bulk deletion operations during pruning.

  • Enables the pruner by adding the --pruner-enable flag to the testnet deployment script
  • Adds optimized bulk deletion methods with configurable flushing for better performance during pruning operations
  • Implements WAL flush capabilities and periodic flushing to manage memory usage during large-scale deletions

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
scripts/deploy_rooch_testnet.sh Enables pruner in testnet deployment by adding the --pruner-enable flag
moveos/raw-store/src/rocks/mod.rs Adds inner DB access and WAL flush methods for advanced pruning operations
moveos/moveos-store/src/state_store/mod.rs Implements optimized bulk deletion with configurable flushing and compaction methods
moveos/moveos-store/Cargo.toml Adds rocksdb dependency for direct database operations
crates/rooch-rpc-server/src/lib.rs Passes shutdown signal to pruner for graceful termination
crates/rooch-pruner/src/util.rs Simplifies table detection logic using placeholder hash comparison
crates/rooch-pruner/src/tests/test_pruner.rs Comments out assertions in test (likely due to changed behavior)
crates/rooch-pruner/src/sweep_expired.rs Adds periodic flushing and improved logging for bulk deletion operations
crates/rooch-pruner/src/pruner.rs Integrates shutdown signal handling and improves logging with state root information

Comment on lines +64 to +65
// for test
thread::sleep(Duration::from_secs(60));

Copilot AI Sep 3, 2025

Copy link

Choose a reason for hiding this comment

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

The hardcoded 60-second sleep with a "for test" comment should not be in production code. This appears to be temporary debugging code that should be removed before deployment.

Suggested change
// for test
thread::sleep(Duration::from_secs(60));

Copilot uses AI. Check for mistakes.
@jolestar jolestar merged commit 58aba8c into main Sep 4, 2025
11 of 17 checks passed
@jolestar jolestar deleted the open_pruner branch September 4, 2025 11:33
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.

3 participants