Skip to content

Conversation

@godexsoft
Copy link
Collaborator

@godexsoft godexsoft commented Jun 8, 2025

Fixes #1597

This PR implements a mechanism for multiple ETL nodes to coordinate who is the writer at any given point.
The mechanism is mirroring the previous ETL's implementation relying on database conflict on write and monitoring the DB for newly added ledgers. Inactivity is detected after certain delay which triggers the node to attempt and become a writer.

This should be the last PR needed for the complete Loader implementation

@codecov
Copy link

codecov bot commented Jun 8, 2025

Codecov Report

Attention: Patch coverage is 57.66423% with 58 lines in your changes missing coverage. Please review.

Project coverage is 73.23%. Comparing base (2d172f4) to head (e76c213).
Report is 4 commits behind head on develop.

Files with missing lines Patch % Lines
src/etlng/impl/Monitor.cpp 63.46% 9 Missing and 10 partials ⚠️
src/etlng/impl/Loading.cpp 32.00% 10 Missing and 7 partials ⚠️
src/etlng/ETLService.cpp 78.94% 1 Missing and 7 partials ⚠️
src/etl/ETLService.cpp 0.00% 4 Missing ⚠️
src/etlng/impl/MonitorProvider.hpp 0.00% 4 Missing ⚠️
src/etlng/impl/TaskManager.cpp 63.63% 1 Missing and 3 partials ⚠️
src/etl/ETLService.hpp 0.00% 1 Missing ⚠️
src/etl/impl/LedgerLoader.hpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2199      +/-   ##
===========================================
- Coverage    73.26%   73.23%   -0.03%     
===========================================
  Files          368      370       +2     
  Lines        14977    15082     +105     
  Branches      7595     7656      +61     
===========================================
+ Hits         10973    11046      +73     
- Misses        1898     1914      +16     
- Partials      2106     2122      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@godexsoft godexsoft marked this pull request as ready for review June 10, 2025 13:52
@godexsoft godexsoft merged commit 743c9b9 into XRPLF:develop Jun 11, 2025
41 checks passed
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.

ETL ng loader

3 participants