You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
applyDelta double-applies buffered deltas after compaction #4588
Affected version: 26.4.2 (confirmed still present in 26.5.1) Component:com.arcadedb.graph.olap.GraphAnalyticalView Severity: MEDIUM
Summary
When a compaction is in flight, every committed delta is both merged
into the current overlay AND stashed in pendingDeltas. After
compaction, the worker re-merges every buffered delta against the new
mapping — including those committed before the CSR scan crossed
their bucket, which are already in the new base CSR. The code makes no
attempt to distinguish the two populations.
After compaction, neighbour lists transiently contain duplicate edges
in the overlay; deletion-driven accounting is also incorrect.
Duplicates persist until the next compaction.
Suggested fix
Stamp each buffered delta with the snapshot timestamp at which it was
applied, and only re-merge those whose timestamp is after the
compaction's CSR scan-start.
Re-validated against main at c50338bd8: the add-side fresh-CSR dedup is in place.
The deletion side still re-applies buffered deltas blindly, and GraphAnalyticalView.java:2558-2561 names "#4588's pair-level re-application dedup" as one of two documented open overlay gaps - the zero-clamp there exists because of it. The clamp protects the aggregate but not copyBaseExcludingDeleted, which can drop a live edge. Filed as a follow-up.
Activity
fix: ArcadeData#4588 GraphAnalyticalView no longer double-applies buf…
fix: ArcadeData#4588 GraphAnalyticalView no longer double-applies buf…
fix: #4588 GraphAnalyticalView no longer double-applies buffered delt…
fix(ArcadeData#6775): withdraw the add, do not mask the pair
perf(#6315): an update to an edge the fresh base CSR already carries …
ruispereira commentedon Sep 2, 2026
Re-validated against
mainatc50338bd8: the add-side fresh-CSR dedup is in place.The deletion side still re-applies buffered deltas blindly, and
GraphAnalyticalView.java:2558-2561names "#4588's pair-level re-application dedup" as one of two documented open overlay gaps - the zero-clamp there exists because of it. The clamp protects the aggregate but notcopyBaseExcludingDeleted, which can drop a live edge. Filed as a follow-up.