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
The per-database stale read floor (#6760) is in-memory only, so a restart unclamps LINEARIZABLE reads of a database a snapshot install gave up on #8137
bughaHigh availability / replication (Raft)severity:majorA feature is broken or returns wrong results, with no practical workaroundstorageStorage/paging/WAL engine layer
#7735 makes the per-database quarantine (ArcadeStateMachine.divergedDatabases) durable: it is mirrored into
the quarantine object of .raft/applied-index and read back by ensureAppliedIndexLoaded(), so a restart no
longer brings a node back RUNNING with alerts: [] on a database that is missing a committed entry.
Its sibling, the per-database stale read floorstaleDatabaseAppliedFloors (issue #6760), is still
in-memory only and is not reconstructed on restart.
staleDatabaseAppliedFloors - ConcurrentHashMap, written only by markDatabasesNotAtSnapshotIndex(...)
during a snapshot install, cleared by clearDivergedDatabase / clearDivergedState.
reinitialize() reconstructs staleSnapshotAppliedFloor (the node-wide one, from the marker vs the persisted
applied index) and nothing reconstructs the per-database map.
getDatabaseAppliedFloor(dbName) therefore answers -1 after a restart, and RaftHAServer.getTrustedAppliedIndex(dbName) returns the unclamped Ratis applied index.
Why it is narrow but not empty
markDatabasesNotAtSnapshotIndex also calls markStateDiverged(dbName, SNAPSHOT_INSTALL_INCOMPLETE), and that
mark IS durable since #7735. So after a restart the database is still quarantined, isResyncInProgress() is true, /api/v1/ready answers 503 and the critical alert fires - the readiness half of #6760 survives.
What does not survive is the clamp: a client that reaches the node directly (not through the Service that the
503 took it out of) and asks for a LINEARIZABLE or read-your-writes read of that database is no longer refused at
an honest floor. The floor was the mechanism #6760 added precisely so such a read fails or degrades rather than
being served from a copy known to be behind.
Suggested fix
Persist the floors the same way the quarantine now is - a floors object beside quarantine in .raft/applied-index, written and cleared by the same three helpers under appliedIndexFileLock, restored by ensureAppliedIndexLoaded(). The file already carries the per-database applied positions the floors are derived
from, so the shapes match.
Scope
Follow-up from the completeness sweep on #7735; out of scope there because it is a different invariant (what a
read may be served, not whether the node is ready) with its own tests.
When a snapshot install could not refresh one database, the node already stayed not-ready for it after a restart, but LINEARIZABLE / read-your-writes reads of that database were no longer limited to the data it actually has. That limit is now saved together with the database's quarantine and restored at startup, and the install writes both in a single step so a crash cannot lose them.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
bughaHigh availability / replication (Raft)severity:majorA feature is broken or returns wrong results, with no practical workaroundstorageStorage/paging/WAL engine layer
Activity
test(#8394): relationship uniqueness at a hub with 150+ parallel edge…
fix(#8137,#8403): settle a snapshot install's quarantine and read flo…
fix(#8403,#8137): a build whose watch cannot be opened does not wedge…
fix(#8394,#8137,#8403): one view per tracked clause; zero-copy tracke…
Merge pull request #8425 from ArcadeData/fix/8403-8394-7875-8137-gav-…
lvca commentedon Sep 26, 2026
Fixed in #8425 (26.10.1).
When a snapshot install could not refresh one database, the node already stayed not-ready for it after a restart, but LINEARIZABLE / read-your-writes reads of that database were no longer limited to the data it actually has. That limit is now saved together with the database's quarantine and restored at startup, and the install writes both in a single step so a crash cannot lose them.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
fix(ArcadeData#8394,ArcadeData#8403,ArcadeData#7875,ArcadeData#8137):…