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
WALFile.getTransaction returns null on partial record, recovery abandons rest of WAL #4508
Affected version: 26.4.2 (confirmed still present in 26.5.1) Component:com.arcadedb.engine.WALFile / TransactionManager
Summary
A torn write in the middle of one transaction record (header valid but
segment truncated, or torn magic number) makes getTransaction return null. The recovery loop interprets null as "end of WAL" and abandons
later valid transactions in the same file.
With TX_WAL_FILES > 1 (default = number of cores) WAL files are written
in parallel; a torn record in one of them ends WAL replay there even
though subsequent records are intact.
Distinguish "torn record" from "physical EOF": scan forward for the next
plausible record header (txId monotonic, plausible magic-number alignment)
or fail loudly. Log SEVERE with the file/offset.
Activity
fix: WALFile.getTransaction returns null on partial record, recovery …
lvca commentedon Jun 8, 2026
This was quite internal, thanks @ruispereira ! Fixed now.
ruispereira commentedon Jun 8, 2026
No problem :)
fix: WALFile.getTransaction returns null on partial record, recovery …
fix(ArcadeData#4952,ArcadeData#4957,ArcadeData#4958,ArcadeData#4960):…
fix: WALFile.getTransaction returns null on partial record, recovery …
fix(#4952,#4957,#4958,#4960): pool discipline, TS threading, storage/…