fix: WAL version gap on follower after HA cluster restart - #4609
Conversation
Investigated and fixed by Leonardo for client issue https://github.com/ArcadeData/arcadedb-operations/issues/438.
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 5 |
🟢 Coverage 100.00% diff coverage · -8.13% coverage variation
Metric Results Coverage variation ✅ -8.13% coverage variation Diff coverage ✅ 100.00% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (9313170) 129758 96976 74.74% Head commit (398f997) 161572 (+31814) 107613 (+10637) 66.60% (-8.13%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#4609) 13 13 100.00% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
…FactoryIT teardown The gremlin/local-database-factory folder was a leftover test DB created by LocalGremlinFactoryIT, which used a relative DB name (writing into the module root) and a lazy stream teardown that never dropped it. Point the DB at target/ and drop it properly so it can't recur.
Code Review - PR #4609: WAL version gap on follower after HA cluster restartOverviewThis PR fixes a bug where What Changed
Positive Observations
Concerns and Suggestions1. Behavior change in the non-shared path (low risk, worth noting) Before this PR, 2. Test uses In final BasicDatabase serverDb = getServerDatabase(0, getDatabaseName());
3. No test for the actual error path (pre-fix behavior) The new tests verify the fixed behavior but do not verify that the old path ( 4.
5. The path changes from Minor Style Notes
SummaryThe fix is correct, well-tested, and well-documented. The |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4609 +/- ##
============================================
- Coverage 65.62% 64.93% -0.69%
- Complexity 0 526 +526
============================================
Files 1661 1661
Lines 129758 129768 +10
Branches 27826 27828 +2
============================================
- Hits 85148 84262 -886
- Misses 32813 33785 +972
+ Partials 11797 11721 -76 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…#4609) * fix: WAL version gap on follower after HA cluster restart Investigated and fixed by Leonardo for client issue https://github.com/ArcadeData/arcadedb-operations/issues/438. * fix: remove accidentally committed test database and fix LocalGremlinFactoryIT teardown The gremlin/local-database-factory folder was a leftover test DB created by LocalGremlinFactoryIT, which used a relative DB name (writing into the module root) and a lazy stream teardown that never dropped it. Point the DB at target/ and drop it properly so it can't recur. --------- Co-authored-by: Leonardo Page <l.page@arcadedata.com> Co-authored-by: Luca Garulli <lvca@users.noreply.github.com>
Fix for a customer-reported issue: WAL version gap on follower after HA cluster restart.
I traced the root cause, reproduced it with a test, and verified the fix. Internal tracking: https://github.com/ArcadeData/arcadedb-operations/issues/438
Please review before merging.