Skip to content

v1.4.9

Choose a tag to compare

@jghoman jghoman released this 10 Nov 21:01
· 124 commits to main since this release
a84a05d

Server, pyhoglake and hedgerow release.

  • pyhoglake now writes object-prefix (<field>=<value>/) tables itself, and its VARIANT writes cost less per file.
  • The server routes catalog requests per request through a CatalogStore seam. This wires the hoglite backend behind JWT routing claims, lets the server boot without PostgreSQL, and adds the mount series, dark behind a switch.
  • Migrations: two small ones, V34 and V35.
  • Upgrading: an existing PostgreSQL deployment needs no config change. Mounts stay off unless an operator turns on hog_mount_switch, and requests without a routing claim behave as before.

Server

  • Catalog seam and hoglite routing (#546, #547):
    • The core catalog routes go through a CatalogStore seam.
    • A verified JWT rtg claim (b backend kind, be allowlisted backend ID, t tenant) routes a catalog's requests to that backend.
    • A request without a routing claim uses the configured default backend (HOGLAKE_DEFAULT_BACKEND, HOGLAKE_BACKENDS_FILE). hoglite can't be the default.
    • On hoglite, uploads, table creations, alters, views and partition backends are selected per request. Maintenance and publications are PostgreSQL-only and answer a typed 501.
  • Boot without PostgreSQL (#554):
    • With HOGLAKE_DEFAULT_BACKEND=none, startup opens no pool and runs no migration.
    • The first request routed to PostgreSQL (HOGLAKE_POSTGRES_BACKEND_ID) opens the pool and migrates. A failure there answers 503 backend_unavailable, and a later request can retry.
    • postgres stays the default, with the same eager startup.
  • Mounts, dark behind hog_mount_switch (#555, #556, #557, #558, #559, #561, #562):
    • A mount is a read-only catalog name, <orgID>-events, over a table in this instance's PostgreSQL catalogs. It serves only verified ten: scoped callers whose cat names it.
    • Dispatch happens before placement:
      • a non-read route answers 403 read_only_catalog;
      • POST /v1/catalogs refuses the reserved name shape with 422, whatever the switch says;
      • refusals are counted per mount and in the gate's auth outcome.
    • The operator API is PUT /v1/mounts/{name}, writable only by the subject HOGLAKE_MOUNT_WRITER_SUBJECT names. Each write is a CAS on its revision and is audited as mount_write.
    • A mount compiles its read scope, appears in its scoped readers' catalog listing, and serves the scoped export (read) routes.
    • A mount can be served by another hoglake, which proxies the reads (HOGLAKE_MOUNT_HOSTS_FILE).
    • Other settings: HOGLAKE_MOUNT_ALLOWLIST, HOGLAKE_MOUNT_SOURCE_*, and the scan bounds HOGLAKE_MOUNT_SCAN_DEADLINE_MS, HOGLAKE_MOUNT_SCAN_FILE_BUDGET and HOGLAKE_MOUNT_SCAN_MAX_CONCURRENT.

pyhoglake / hedgerow

  • Object-prefix writes (#563):
    • While TableInfo.object_prefix_field is set, Table.append, prepare_append_tables and prepare_append_files write each file under <data_path>/data/<ns>/<table>/<field>=<value>/. Each file's own footer must prove the value before anything is uploaded. Until now, such a table refused every commit from these writers.
    • A null, non-canonical or out-of-range prefix value, or a layout the client can't place under, raises ValidationError before any encode.
    • New footer_stats_min_bytes= (default DEFAULT_FOOTER_STATS_MIN_BYTES, 1 MiB) on the three writers. With deferred_stats=True on such a table, a smaller file registers the prefix field's stats only (provided at commit), and a larger file registers every stat.
    • New ops.set_object_prefix_field(name).
    • expected_table_info also compares object_prefix_field.
    • Tables without the option are unchanged. Payloads and object bytes are pinned against 1.4.8 by tests/vectors/write_golden.json.
    • append streams its uploads again on tables without variant columns.
  • Faster VARIANT writes (#564):
    • The fixed per-file cost of a shredded VARIANT write_part drops from about 7 ms to about 4.4 ms. Output bytes are unchanged.
    • 100k whale-shaped rows, native codec: −18% per row at 500 groups, −34% at 2000.
    • Compiled plans, stamped footers and schema comparisons are kept in a bounded, locked LRU.
    • VariantReport.encoded_by ("rust" / "python") records which codec produced the storage. The writer skips its second structure check only for Rust output.
    • compile_plan checks a declaration's size before walking it. A caller-built DAG or cycle is now refused promptly; on main this used to take time exponential in its depth.
  • Variant codec: unchanged; the variant-codec extra still pins pyhoglake-variant-codec 0.1.0.

Bench

  • A standalone CostBench runner and a nine-worker NVMe profile (#548).

Operators

  • Migrations V34–V35: both are small and transactional, with a 5 s lock timeout.
    • V34 adds the one-row hog_mount_switch (off).
    • V35 adds the empty hog_mount table.
  • Mounts: off until UPDATE hog_mount_switch SET enabled = true;, a mount row and HOGLAKE_MOUNT_ALLOWLIST are all in place.
  • Defaults: HOGLAKE_DEFAULT_BACKEND defaults to postgres, unchanged.