Skip to content

Releases

rtTools.Storage 0.1.0-preview.6

Pre-release

Choose a tag to compare

@bgtnt bgtnt released this 19 Nov 22:37

This preview reduces I/O and managed allocations in persistent queues, state storage and indexed history.

  • BufferedQueuePersistent<T> drains physically ordered records one cache window at a time. If a write reuses a hole ahead of an older entry, the queue scans the remaining ordering metadata to preserve FIFO.
  • DataStorage allocates less during reads, appends and raw recovery. SortedArrayCollection<T> locates the boundaries of long runs of duplicate keys in logarithmic time after finding a match.
  • DictionaryLogger takes a shallow state snapshot in one array. Queue enumeration avoids an extra array. LimitedList<T> reuses its backing array on clear and allocates a single backing array per copy.
  • Log reuses compression buffers and its range queries reuse bounded merge buffers. Producer threads release disposed logs and their indexes. TimeLog writes fixed record headers from stack storage.

The package was built from commit 1a79e5a. Package-only verification covers 261 History and persistence checks, six State checks and three sample lifecycles. The packaged sample also runs as a standalone consumer. The release verification report includes Windows and Ubuntu CI, a public API comparison, and measured results against preview.5.

Download the NuGet package into a local packages directory, then run this command.

dotnet add package rtTools.Storage --version 0.1.0-preview.6 --source ./packages

See the API overview and storage contracts. The release includes SHA256SUMS.txt for the package and verification report.

rtTools.Storage 0.1.0-preview.5

Pre-release

Choose a tag to compare

@bgtnt bgtnt released this 21 Oct 17:01

Corrects two independently reproduced callback/cleanup defects in preview.4 without changing public signatures, record layouts or runtime dependencies.

  • BufferedQueuePersistent<T> and both StreamPersistence wrappers reject source-I/O callback disposal before changing their own disposed state. If a synchronous Flush callback catches the rejection and returns successfully, the wrapper remains usable and later normal disposal closes once. Disposal after a storage failure remains allowed.
  • Direct DataStorage and SynchronizedDataStorage construction honors closing policies even when an error notification throws. Secondary application exceptions from Failed/Closed/Throw retain the original opening exception and abort further recovery/clear. Actual source failures, including Close, retain first-source precedence. Explicit Throw-only remains nonclosing; owning wrappers preserve their established cleanup rules.
  • README states this exception/ownership contract explicitly.

Validation: 30 new contract groups join the existing checks; 251 package-only persistence/history groups (250 Contract PASS + one Characterization CONFIRMED), four State groups and all three sample lifecycles. Regression coverage includes explicit/inline Flush reentry, disposal after fault, distinct notification and source-close exceptions, same-object exception stack preservation, actual notification counts, policy controls and immediate exclusive file reopen with exact sentinel bytes. Clean checkout, exact package-only consumers and a standalone sample extracted from this package pass with zero build warnings/errors. Windows and Ubuntu CI verify the same commit, with independent review before publication.

The same 18 safe before/after cases run against released preview.4 and this package. Preview.4 has ten expected failures and eight passing controls: four wrapper lifetime failures, four constructor cases that bypass closing policies and two additional Throw-only exception-precedence cases. All 18 pass against this package.

Download the .nupkg into a local feed and install:

dotnet add package rtTools.Storage --version 0.1.0-preview.5 --source ./packages

release-verification.json binds source commit, exact package/library hashes, validation and CI; SHA256SUMS.txt covers both release files. Previous previews remain available.

Failure probes use controlled streams/application callbacks. File-handle release tests do not establish real disk-failure, crash or power-loss durability. Faulted owners must be disposed and files inspected before reopening; there is no rollback or automatic repair. Raw Stream access bypasses guards; cached values remain advisory. Default serialization requires trusted data.

rtTools.Storage 0.1.0-preview.4

Pre-release

Choose a tag to compare

@bgtnt bgtnt released this 21 Oct 11:45

Makes automatic flush failures observable and defines when state storage can be used after a source I/O failure.

  • DataStorage.IsFaulted and StorageException retain 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.LastAutoFlushException reports 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 ./packages

release-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.

rtTools.Storage 0.1.0-preview.3

Pre-release

Choose a tag to compare

@bgtnt bgtnt released this 21 Oct 11:10

Corrects three independently reproduced defects without changing public APIs, record layouts or runtime dependencies.

  • TimeLogClient<T> propagates application decoder, action and predicate EndOfStreamException failures. Physical-read EOF keeps its existing prefix/header-count behavior, documented separately in README.
  • DictionaryPersistent and ListPersistent validate paired codecs before opening a filename, preserving sentinel bytes even with FileMode.Create. Initialization attempts owned-stream cleanup while preserving the primary error; rejected caller-stream arguments retain caller ownership.
  • DataStorage validates complete record headers, nonnegative representable lengths and payload bounds before allocation, callbacks or record acceptance, including opens without scanners and subsequent reads.

Validation: 58 new contract groups join the existing checks; 149 History/persistence groups (148 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 read-only review accepts the source, tests and exact release artifact.

Safe before/after evidence: the released preview.2 package reproduces 24 expected regression failures while six controls pass; the same 30 cases pass against this package. Large/near-int-max malformed cases are exercised only against the corrected version with tiny/synthetic fixtures.

Download the .nupkg into a local feed and install:

dotnet add package rtTools.Storage --version 0.1.0-preview.3 --source ./packages

release-verification.json binds package/library hashes to the source commit, baseline evidence and CI. SHA256SUMS.txt covers both release files. Previous preview releases remain available.

This preview does not promise transactions, crash recovery or power-loss durability. Physical EOF prefix/header-only queries do not validate or repair damaged history. Default serialization requires trusted data.

rtTools.Storage 0.1.0-preview.2

Pre-release

Choose a tag to compare

@bgtnt bgtnt released this 21 Oct 09:50

Adds the missing object persistence, persistent FIFO and dictionary snapshot families to the BCL-only .NET 10 package.

  • StreamPersistence, StreamPersistence<T>, IPersistent, IPersistentBinary: explicit object saves, load callbacks and binary reconstruction factories.
  • BufferedQueuePersistent<T> and its LimitedList<T> helper: a disk backlog with a bounded decoded head cache, paired codecs and FIFO refill after space reuse.
  • DictionaryLogger<TKey,TValue> and SerializableKeyValuePair<TKey,TValue>: current state plus explicit shallow timestamped snapshots, with separate state/history codecs.
  • Complete public API overview, lifecycle samples, constructor cleanup and callback reentry guards.

Validation: clean checkout and package-only consumption; four builds without warnings/errors; four State contract groups; 90 History/persistence contract groups plus one confirmed characterization; all sample lifecycles and a standalone sample extracted from this package. Windows and Ubuntu CI run the same verification. Independent read-only review accepted the implementation and release artifact.

Download the .nupkg into a local package feed and install:

dotnet add package rtTools.Storage --version 0.1.0-preview.2 --source ./packages

release-verification.json binds the package and library hashes to the source commit and CI evidence. SHA256SUMS.txt covers both release files.

Preview APIs/file formats may change. There are no transactions, atomic state/history commits, crash recovery or power-loss durability guarantees. Queue startup/enumeration decode the backlog; only its head cache is bounded. Default serialization requires trusted data.

rtTools.Storage 0.1.0-preview.1

Pre-release

Choose a tag to compare

@bgtnt bgtnt released this 21 Oct 07:02

First public preview of rtTools.Storage, embedded .NET 10 storage for resident application state and indexed history. MIT; no external runtime packages.

  • State: resident persistent dictionaries/lists and reusable DataStorage, with explicit codecs.
  • History: chronological TimeLog and fixed-key Log, publication, duplicates, payload compression/overflow and opt-in tombstones.
  • Corrected UTC query bounds, default-null rejection, observable automatic flush errors, explicit flush/disposal failures and resource cleanup.
  • Package-only checks and runnable State/History examples.

Download the .nupkg into a local packages folder and install:

dotnet add package rtTools.Storage --version 0.1.0-preview.1 --source ./packages

Verification: clean-checkout build/pack, 4 State contract groups, 50 History groups, standalone packaged sample, and independent read-only release review. Exact commit and package hash are recorded in release-verification.json and SHA256SUMS.txt.

This is a preview. API/file-format stability, transactions, atomic multi-file commits, crash recovery and power-loss durability are not promised. Fault probes test synthetic failures; use trusted files and explicit codecs for persisted contracts. See the README for exact publication, range and error semantics.

CI: https://github.com/bgtnt/rtTools.Storage/actions/runs/39558935246