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
PageShadow spill channel has no reopen after an interrupt closes it, so one interrupt fails the snapshot window (follow-up of #9306) #9444
Follow-up of #9306. The point-in-time snapshot's shadow spill file (PageShadow.spillChannel) is a plain FileChannel.open(...) with no interrupt protection and no reopen. An interrupt landing on any thread doing I/O on it closes it for every thread (ClosedByInterruptException), and from then on:
PageShadow.store (pre-image capture that spills past the RAM budget) throws -> PageManager.capturePreImages invalidates the window (STATUS.FAILED);
PageShadow.read (called from PageSnapshot.SnapshotFileInputStream.fill for every page of every run) throws -> the HA snapshot ship / full backup fails mid-archive.
#9306 gave every channel operation of PaginatedComponentFile (the DATA files) a bounded reopen-and-retry. The spill file is the same failure mode on the other half of the snapshot read path, but a different class with its own locking (a monitor, range reservation outside it), so it was left out of that PR.
store: spillChannel = FileChannel.open(spillFile.toPath(), CREATE_NEW, READ, WRITE) and pos += channel.write(buffer, pos) outside the monitor;
read: channel.read(buffer, pos) outside the monitor.
Neither catches ClosedChannelException, and the channel is not protected the way PaginatedComponentFile.doNotCloseOnInterrupt protects data files.
Suggested fix
Either apply the same doNotCloseOnInterrupt treatment to the spill channel, or reopen it (READ/WRITE, without CREATE_NEW) under the monitor on ClosedChannelException and retry a bounded number of times, mirroring PaginatedComponentFile.reopenAndRetry. A reopen must be refused once the shadow is closed.
Scope
Only reachable when a window spills (arcadedb.pageSnapshotMaxRAM exceeded) - large backups / HA ships under write load, which is exactly when the window is long enough for an interrupt to land.
A backup or HA snapshot keeps copies of changed pages in a temporary file once they exceed the RAM budget. An interrupted thread could close that file, making the whole backup/ship fail. The file is now protected from interrupts like the data files, and if it gets closed anyway it is reopened and the read/write retried, so a single interrupt no longer kills the backup.
❤️ 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.
Activity
Merge pull request #9474 from ArcadeData/worktree-issues-9444-9439-94…
lvca commentedon Oct 8, 2026
Fixed in #9474 (26.11.1).
A backup or HA snapshot keeps copies of changed pages in a temporary file once they exceed the RAM budget. An interrupted thread could close that file, making the whole backup/ship fail. The file is now protected from interrupts like the data files, and if it gets closed anyway it is reopened and the read/write retried, so a single interrupt no longer kills the backup.
❤️ 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#9444,ArcadeData#9439,ArcadeData#9425,ArcadeData#9380):…
fix(#9444,#9439,#9425,#9380): spill-channel reopen, lossless XNIO tim…