1 suggestion
Earlier concerns neither republished nor resolved: 2 suggestions. See the Run archive for their assessments.
Optional improvements
[suggestion] · Block and undo write-failure handlers lack regression coverage
The new stream test checks exception propagation and retry suppression, but leaves WriteBlock and WriteBlockUndo cleanup, fatal notifications and failure returns untested.
Location: src/node/blockstorage.cpp:1176 (head).
Details and suggested fix
buffered_writer_flush_failure uses a fake stream that fails its first write. Removing fatalError() from the block catch would leave those assertions unaffected: AcceptBlock() would receive a null position and only set state.Error(), without requesting shutdown. Add deterministic write-failure tests after allocation and opening succeed. Check that WriteBlock() returns a null FlatFilePos and sends a fatal notification. For WriteBlockUndo(), use an index with a null undo position and a valid pprev; check that it returns false, sets state.IsError(), sends a fatal notification and leaves BLOCK_HAVE_UNDO unset. Include a failure after an earlier successful write, which sets m_was_written and makes a missing explicit fclose() detectable by ~AutoFile's Debug-build Assume(IsNull()) check.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Destructor fallback retains an undocumented termination path (earlier report)
- [suggestion]: Short-write diagnostics omit the operating-system error (earlier report)