Repository navigation
rtTools.Storage 0.1.0-preview.4
Pre-releaseMakes automatic flush failures observable and defines when state storage can be used after a source I/O failure.
DataStorage.IsFaultedandStorageExceptionretain the first source failure, including unexpected exact-read EOF and failures after a possible mutation. The failing call preserves its exception; later storage operations reject before I/O or application callbacks. Dispose and advisory metadata remain available.SynchronizedDataStorage.LastAutoFlushExceptionreports the latest completed automatic attempt, including threshold and zero-idle flushes. Automatic failure is contained so an already completed mutation can return and publish its cache/PersistId. Explicit Flush still propagates errors; pending changes remain pending after failure.- Wrapper mutation guards cover codecs and no-op paths. Shared constructor cleanup ownership prevents repeated close attempts. Timer shutdown avoids waiting while holding the shared storage gate.
- README describes source versus application errors, cached-read limits, disposal, automatic telemetry and the separate history-store contracts.
Validation: 72 new contract groups; 221 package-only History/persistence groups (220 Contract PASS + one Characterization CONFIRMED), four State groups and all three sample lifecycles. Clean checkout, package-only consumers and a standalone sample extracted from this exact package pass without build warnings/errors. Windows and Ubuntu CI verify the same commit; independent review accepts the source, tests and exact release artifact.
Safe before/after evidence uses the exact released preview.3 package: 17 cases demonstrate behavioral differences and seven require the newly added diagnostic API. All 24 pass against this package. Old-package tests exclude potentially blocking timer/reentry scenarios. Failure probes are synthetic streams, not real disk-failure, crash or power-loss evidence.
Download the .nupkg into a local feed and install:
dotnet add package rtTools.Storage --version 0.1.0-preview.4 --source ./packagesrelease-verification.json binds package/library hashes to the commit, validation and CI; SHA256SUMS.txt covers both release files. Five public read-only properties are added; existing signatures, record layouts and runtime dependencies are unchanged. Previous preview releases remain available.
After IsFaulted, dispose the owning wrapper and inspect/validate files before reopening. Cached values are advisory. No rollback, automatic repair, atomic state/history transaction or crash/power-loss durability is promised. Direct raw Stream access bypasses failure tracking. Default serialization requires trusted data.