8000 Pause online delete if there any any gaps in recent ledger history by ximinez · Pull Request #5531 · XRPLF/rippled · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Pause online delete if there any any gaps in recent ledger history #5531

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

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

ximinez
Copy link
Collaborator
@ximinez ximinez commented Jul 2, 2025

High Level Overview of Change

Adds another check to the online deletion process to prevent ledger gaps from persisting if the node goes out of sync.

Context of Change

Some nodes struggle to stay in sync when online delete is running due to the added I/O burden. This has proven difficult to avoid without upgrading hardware. If the process takes a particularly long time, which it can with large datasets, the node can end up with many gaps in the recent ledger history. Those gaps will not be filled until the node is idle enough for low-priority historical ledger requests to run.

Note that this is a trade-off. The online deletion may take longer to complete, but the node will stay more up-to-date.

Type of Change

  • New feature (non-breaking change which adds functionality)

@ximinez ximinez requested a review from a team as a code owner July 2, 2025 21:34
@ximinez ximinez force-pushed the ximinez/online-delete-gaps branch 4 times, most recently from e3975af to b2c4c3d Compare July 2, 2025 22:38
@ximinez ximinez force-pushed the ximinez/online-delete-gaps branch from b2c4c3d to 54f7f3c Compare July 2, 2025 22:47
Copy link
codecov bot commented Jul 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.1%. Comparing base (9874d47) to head (0bc383a).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           develop   #5531   +/-   ##
=======================================
  Coverage     79.1%   79.1%           
=======================================
  Files          816     816           
  Lines        71622   71647   +25     
  Branches      8237    8229    -8     
=======================================
+ Hits         56644   56673   +29     
+ Misses       14978   14974    -4     
Files with missing lines Coverage Δ
src/xrpld/app/ledger/LedgerMaster.h 76.5% <ø> (ø)
src/xrpld/app/ledger/detail/LedgerMaster.cpp 44.8% <100.0%> (+0.6%) ⬆️
src/xrpld/app/misc/SHAMapStoreImp.cpp 79.9% <100.0%> (+3.4%) ⬆️
src/xrpld/app/misc/SHAMapStoreImp.h 96.6% <ø> (ø)

... and 6 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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
0