Skip to content

Hubuum v0.0.21

Choose a tag to compare

@github-actions github-actions released this 26 Oct 15:13
· 36 commits to main since this release
Immutable release. Only release title and notes can be modified.
19db154

[0.0.21] - 2026-10-26

Added

  • Queue class schema profiling with json-schema-profiler, configurable policy
    presets and sample sizes, authorized raw-data sampling, replay diagnostics,
    cancellation, and expiring reports. Apply the schema-profiling migration before
    starting the updated server, and upgrade all API and worker processes before
    accepting profiling requests. Suggestions never modify class schemas automatically.

  • Discover observed raw and computed fields for a class ID or exact class name
    in one bounded, permission-filtered request. Responses include sample counts,
    structured paths, value types, previews, and explicit truncation details. The
    ID route also supports names such as . and .. that URL parsers normalize.

  • The storage SDK includes hubuum-budget, a standard-library crate for typed
    byte limits, cumulative accounting, and bounded writers. Backup and template
    output share its enforcement while preserving their existing limits and errors.

Security

  • Update ctutils to 0.4.4 in the application and fuzz lockfiles to address
    RUSTSEC-2026-0385 (non-constant-time mask generation and u128 comparisons).

Fixed

  • Deleting a class or collection no longer deadlocks with computed-field workers
    that have acquired the definition lock but are waiting for the class row.
    The migration preserves retained history and closes its final validity interval.
  • Schema profiling output-state searches include profiling tasks on the memory
    backend. Incomplete candidate replays fail without publishing a report.
  • Scale lifecycle memory supervision counts each Linux process once rather than
    counting its shared address space again for every thread. Earlier reports that
    the large backup fixture exceeded 6 GiB and 12 GiB are superseded: the monitor
    inflated RSS and terminated the administrator prematurely.
  • Scale lifecycle reports retain restore timing when structured logs precede the
    verification report, and leave unmeasured computed-data rebuild timing unset.

Changed

  • Breaking (REST clients with closed task-kind enums): task and event-subscription
    responses can now contain schema_profiling. Regenerate clients from the updated
    OpenAPI document or add schema_profiling to task-kind response enums before
    enabling profiling requests and subscriptions.

  • Breaking (supported Rust crates / storage SDK): advance the coordinated
    SDK train to 0.6.0 for schema profiling task kinds, artifacts, and required
    output-read/cleanup methods. External adapters must update all ten SDK
    dependencies together and implement fenced report publication, cancellation,
    retention, and discovery as described in the
    0.6 upgrade guide.

  • Breaking operational change: Stale computed reads return their evaluated
    snapshot without waiting for repair persistence. Bounded durable tasks coalesce
    repair identities and reload current data under transaction locks. Deployments
    that disable task workers must enable at least one worker process to persist
    read repairs; reads remain correct and retry admission when busy or full.
    Apply the bounded transactional migration during a quiet period; lock or scan
    timeouts roll it back so contention or capacity can be addressed before retry.
    Read-repair metrics distinguish queue admission outcomes from worker success
    and failure.

  • Computed object reads reuse prepared definitions and cached-value validation
    metadata per class and owner, consume cached JSON without copying it, and skip
    source hashing when no shared fields are enabled. Read repair carries only
    typed identities. Stage spans separate pool waits, queries, locks, hashing,
    evaluation, repair, and response serialization without exposing object data.

  • Stream computed-field source hashing into SHA-256 instead of allocating a second
    full canonical JSON document. Existing cache digests and freshness rules remain
    compatible; no cache rebuild or migration is required.

  • Breaking (backup/restore deployments): Stream PostgreSQL backup capture, administrator file verification, restore
    uploads, and restore application through private replayable files. Validation
    retains identity and schema indexes instead of all decoded object and relation
    bodies. PostgreSQL stages restore artifacts in chunks of at most 1 MiB, shared
    by separately deployed executors, and applies rows in bounded batches inside
    the existing atomic transaction. Backup JSON versions 6–10 remain supported.
    Apply the migration and upgrade restore executors before staging new restores;
    old executors cannot read chunked stages. Complete or expire these stages before
    rolling back the migration. Temporary disk space is now required for spooling;
    refresh installer configuration or mount writable storage at the container
    TMPDIR (normally /tmp).

  • Breaking: Administrator restore and backup verification enforce
    --restore-max-upload-bytes. The limit also applies to piped restore input.
    Increase that explicit limit when processing a larger artifact.

  • Breaking (storage SDK backup/restore): Remove the materialized capture,
    staging, artifact-loading, and apply methods, their obsolete request types,
    and materialized snapshot restore-validation and normalization helpers.
    Adapters must implement the replay capabilities directly; migrate using the
    0.5 SDK guide.
    Storage operation metric labels now use capture_backup_replay,
    stage_restore_artifact, get_restore_artifact, and apply_restore_replay;
    update queries that filter the former operation names.

  • Breaking (storage SDK): advance the coordinated SDK train to 0.5.0.
    Class-relation commands retain validated aliases and limits; relation
    decomposition uses named fields, and session issuance carries validated
    deadlines. External adapters must update all ten SDK crates together and
    migrate constructors and accessors as described in the
    0.5 migration guide.
    No database migration is required.

  • Breaking (scale fixtures): bundled large and huge profiles advance to
    version 2. Recreate disposable datasets and manifests with the matching new
    profile, or retain an archived version-1 specification with --profile-spec.
    Older custom profile files remain readable.

  • Scale backup drills declare byte, row-work, resident-memory, and stage-time
    budgets. The large profile uses a 1 GiB document ceiling and four million
    scanned rows. A lifecycle-only command records per-stage memory and timing,
    bounds administrator execution, and removes temporary backup documents.
    Reports distinguish limit termination from completed verification or restore;
    the original memory-limit observations are superseded by the accounting fix
    described above.
    Production backup and restore defaults remain unchanged.

  • Release builds use speed-oriented optimization (opt-level = 3) with the
    existing fat LTO and single codegen unit. Representative serialization, schema
    validation, query parsing, and template workloads improve at the cost of larger
    executables and containers and more expensive builds. See the
    release-profile measurements. No
    configuration or database migration is required.