Repository navigation
v0.24.0
[0.24.0] - 2026-10-15
Changed
--distributed-querynow requires--fragment-listenerand
--sql-ticket-key-file(ADR-1689 release B).ravel-serverrefuses to
start--distributed-querywithout--fragment-listener(with its three
--fragment-tls-*files), and, in a build that serves Flight SQL such as the
published image, without--sql-ticket-key-file. Each error names the
missing flag. The release A startup warning is gone, and so is the
plaintext layout it announced: every fragment fetch and SQL sliceDoGet
between nodes of one cluster is dialed over mutual TLS to the dedicated
listener, and no SQL ticket key is derived from the fragment key file. The
query-worker heartbeat record no longer carriesflight_sql_endpoint; a
record from an earlier release still decodes.--advertise-fragment-endpoint
now applies to the fragment listener alone, so a wildcard--listen-grpcno
longer needs it, and the refusal of a port in it without
--fragment-listeneris gone. A new counter,
ravel_sql_slice_tls_dials_total, counts the SQL slice fetches a
coordinator dials over TLS; no metric was removed. ARavelClusterwith
spec.query.distributedQuery.enabledand all four Secret references set
already renders both flags. A fleet that runs the previous release without
them should turn both on before upgrading; see the deployment guide.- The ingest write path and maintenance run their CPU-bound codec work on
the CPU gates (ADR-1702 tasks 9 and 10). On the write gate
(--cpu-gate-write-permits): the metrics, log and span shard flush encodes,
an OTAP payload's zstd decompression, an OTLP-HTTP gzip body's inflate and a
Remote Write body's snappy decode, under theravel_cpu_gate_jobs_total
sitesmetrics_flush,log_flush,span_flush,otap_decode,
otlp_http_gzipandremote_write_snappy. On the read gate
(--cpu-gate-read-permits): compaction's decode and re-encode (compaction),
retention's and the sweep's snapshot reads (reachability), scrub's
full-object hash (scrub) and the on-demand fold route's snapshot part
decodes (fold). The scheduled catalog fold's own decodes, RLOG
compaction's block decode, the directory decodes of RLOG and RSPAN
compaction inputs, scrub's footer and postings reads and the fold route's
HEAD decodes still run on the runtime workers. A unit under the
gate's 256 KiB inline floor still runs on its task and counts in
ravel_cpu_gate_inline_total. An ingest decompression is measured against
the floor by its inflated size: the length a snappy body or a zstd payload
declares, and for gzip, or zstd with no declared size, the compressed size
times the format's maximum expansion; an OTAP payload now stops
decompressing one byte past the size its frames declare. Acknowledgement
order, byte charges and stored objects are unchanged. If the write gate
returns no result, the unit fails as a server fault: a flush answers its
strict writers with the retryableShardUnavailable(503), drops its
buffered rows and counts in the new
ravel_ingest_flush_gate_faults_total(bymodeandsignal), not in any
ravel_ingest_abandoned_*counter, an HTTP request gets 500 or 503, and an
OTAP batch is nacked INTERNAL or UNAVAILABLE and its stream ends. A flush
whosemax_flush_lifetimeruns out while it waits on the write gate or
while its encode runs is abandoned before any PUT and counts in
ravel_ingest_abandoned_queue_deadline_total. If the read gate returns no
result for a maintenance unit, that compaction, retention pass or sweep
pass fails with an error, the fold route
reportspublishedwithout comparing the snapshots, and a scrubbed object
reports a retryable read error rather than a finding. - A format floor raised by
maintain migratenow records the census it was
verified against, and the provisioning record is written at
format_version3 (ADR-1746 Release B, issues #1746 and #2674). The raised
floor carries the live entries the zero-straggler re-audit counted, the
newestcreated_unix_nsamong them, and the shard range it scanned, so
maintain audit-versionscan classify itcurrentorstaleinstead of
unknown. A floor raised earlier keeps no basis: its entry stays
unknown(orcontradictedwhile a live record sits below it) until the
next version raise of its family appends a new entry that carries one. A
release before v0.20.0 reads only versions 1 and 2, so it refuses a record
this release writes on every path, the ingest flush's generation read
included; v0.20.0 (Release A) and later read it. Every server,ravel-cli
andravel-operatormust run v0.20.0 or later before any process runs this
release. A v0.20.0 to v0.23.0 binary reads a version-3 record but refuses to
rewrite it, so itsravel-cli provision reshard,ravel-cli maintain migrateand the operator's reshard fail withRefusingToRewriteNewerRecord
on any record a process of this release wrote, which includes every tenant
first provisioned after the upgrade. Upgraderavel-cliand
ravel-operatorwith the servers, or hold reshards and migrations until
the rollout has finished. - A log segment at or under the plan bound is read once, without a plan
read, when the scan holds enough of them (ADR-2677 decision 2, issue
#2682). The plan bound is the larger of--logs-block-range-thresholdand
the projection break-even. When a SQL scan of logs holds at least as many
segments at or under the bound (relevant to the query window) as it has
target partitions, it no longer probes them in its plan phase: one partition
opens each with a single whole-object GET and prunes blocks from the
directory that read holds. A selective statement over many small objects
issues one GET per object instead of several, and an undecidable predicate
(has_word) no longer reads such an object twice when it falls outside the
plan carry. A newLogsScanExecmetric,segments_unplanned, counts these
segments, and they no longer count inplan_full_reads. With a read cache
wired, such segments are no longer striped across partitions. A scan with
fewer such segments than target partitions keeps the planned route for every
segment, as before: the plan carry budget covers that many objects, and a
read cache can still stripe their blocks across partitions. The decision is
made once per scan over its whole segment list, so every partition routes a
segment the same way. Segments above the bound keep the planned route. - On a loopback S3 endpoint,
--logs-fetch-policydefaults to
latency-firstand the fetcher cache carves 24% of the process memory
budget instead of 40% (ADR-2677 decision 7, amending ADR-2023 decisions 1
and 3). Both changes apply only to a--store s3deployment whose
--s3-endpointis a loopback address; a remote endpoint keeps
cost-basedand the 25% carve. Thelogs fetch policy resolvedstartup
line names the new default withpolicy_source="default-loopback", and the
cache_max_bytesline keeps the sourcebudget-carve-loopbackwith the
smaller value.--store-get-concurrencykeeps its core-derived default. On
ClickBench over a RustFS loopback endpoint on c6a.4xlarge boxes (issue
#2044 comment 6115248576, one run per arm),latency-firstcut cold time
from 478.1 s to 368.6 s, and a cache of 7 GB, 23.8% of those boxes'
budget, cut the concurrent error ratio from 0.099 to 0.029 at about the
same hot time. The smaller cache alone also cut concurrent throughput by
11%, 0.512 QPS against 0.574. The two together measured 370.2 s cold at an
error ratio of 0.040 and raised concurrent throughput to 0.678 QPS. To
keep the earlier behaviour, pass--logs-fetch-policy cost-basedand set
--cache-max-bytesto the size you want. - On a keyed bucket, an unkeyed
--remote-clusteris refused at startup.
This affects a default deployment: every keyed bucket, which is the default
for a fresh bucket (--tenant-hash-key-fileis required unless
--tenant-hash-unkeyed). In all, gateway or query mode on a keyed bucket,
durablesys/authbearer tokens can onboard a tenant without a restart, so
the federation startup guard now counts the process as serving more than one
local tenant and requirestenant=on every--remote-cluster, even with a
single--tenant-token. Addtenant=<local tenant>to each spec before
upgrading. Atenant=naming a tenant known only throughsys/authis now
accepted instead of refused as a mapping that can never fire. - SQL runs on DataFusion 55.2 and Arrow/Parquet 59.3 (issue #2720). Seven
behaviors change.GROUP BYputs-0.0and0.0in one group, because
DataFusion 55 canonicalizes negative zero in group keys; NaN payloads still
group apart.count(DISTINCT)over a float counts the two zeros once only
where DataFusion rewrites the distinct argument into a group key: every
distinct aggregate in the statement takes that one argument and the others
are limited tosum,minandmax. Beside another aggregate such as
count(*)oravgit still compares bit patterns and counts them twice.
The new upstream functionsany_value,input_file_nameand
file_row_indexare refused like every other function Ravel has not
admitted. A single-stage
GROUP BYthat spills to disk now needs about half of its in-memory peak
under--sql-max-query-bytesto finish, where a quarter used to be enough:
DataFusion 55 replays the spill runs through a merge and an ordered
aggregate that reserve more than the old path did. A statement refused by
the spill scratch quota names the bytes the spill files held when the
refusal arrived, which is now below the quota and can be zero, because
DataFusion 55 refuses the write before it lands. Flight SQLGetSqlInfo
reports Arrow version 59. Most grouped aggregates now run on DataFusion
55's new aggregate streams, which keep their emitted output reserved until
the last slice of it is handed out and release it then, so the SQL memory
pool's new aggregate hold (issue #2633, under Fixed) does not apply to
them; it covers a legacy aggregate that DataFusion 55.2 marks as unable to
spill, such as a single-stageSELECT DISTINCT ... LIMIT, and never a
partial aggregate or a final aggregate that can spill. On 55.2,length,
octet_lengthand the other string functions that return an integer
still return a plain integer over a declared string column, so
-length(<Str column>)plans andavg(length(<Str column>))keeps its
exact integer average with a partitioned final aggregation (issues #2901,
#2916, #2918). ravel-cli loadwrites objects of about 250,000 rows by default, on
logs, metrics and spans. With--target-bytesunset the flush target is
derived as 250,000 rows times the first batch's estimated bytes per row,
and with--pipeline-depthunset the depth is derived as the lowest of
ceil(250,000 x--shards/--batch-rows), the memory bound (the load
memory budget divided by the estimated object bytes of one batch, at least- and 1,024. The budget is
--load-memory-bytes, or with it unset the
host or cgroup memory total less the loader's own floor, or a 4 GiB
fallback when that total cannot be read. With the target derived, the
loader flushes every shard (flush_all) once the oldest batch pending on
any shard is--pipeline-depthbatches old; a size flush restarts only
its own shard's window, and an explicit--target-bytesturns that depth
flush off. At the previous defaults a 510,000-row single-shard load wrote
51 objects; it now writes 3. The loader prints the resolved target and
depth as oneload geometry:line on stderr before the first write, and
every signal's summary prints them with what decided each, whether the
depth window kept realigning on size flushes (realign_gave_upin the
JSON), the flush trigger mix (size, age, arrival, depth, manual), the
--target-bytesno-effect warning when it applies, and the same report as
oneload report json :line. Three behaviors change beside the layout:
an unset--max-flush-delaynow reaches the router as 60s instead of the
router's 2s default; the end-of-inputflush_allruns after
wait_enqueued, so it covers every submitted write; and a load that fails
on a refused row or a failed write flushes its buffered writes before it
waits on them, so it reports without waiting out the age trigger. To get
one object per batch per shard and four writes in flight, pass
--target-bytes 1 --pipeline-depth 4with an explicit--batch-rows.
- and 1,024. The budget is
- RSPAN objects are now trailer version 5, with a mandatory exact trace_id
index section (KEY_IDX). Every span object a writer or the compactor
produces carries the index, and a reader can find the blocks holding a trace
with two small ranged reads instead of scanning the object's blocks. The
reader accepts only version 5: stored spans written as version 4 objects are
refused and must be re-ingested from source to stay queryable. A scan
reports them asUnsupportedVersion; atrace_idlookup, which reads the
object by ranges, reports them as corrupt. Query paths do not use the index
yet. - OTLP requests are projected once instead of twice. The OTLP metrics,
logs and traces handlers walk a request once for its resolved-label bytes
and use that value both for the ingest byte budget charge and for the
normalizer's bound check, which used to repeat the walk. No behaviour
change: the same requests are admitted, charged and rejected. - SQL log scans build integer and timestamp columns from one decode pass.
An integer column page now decodes straight into the value and validity
buffers the query's Arrow columns are built from, and a columnar SQL scan
builds each column by copying the block's span of those buffers once (and
taking the surviving rows from that copy when a filter removed some)
instead of appending each cell. A declared integer column
whose missing values are filled from a resource or scope attribute is still
rebuilt cell by cell. Results are unchanged.
The SQL response'sstats.accounting.intValuesBuffersand the
int_values_buffersscan metric inEXPLAIN ANALYZEcount the integer value
buffers built. On a ranged read of a version-4 log object, the directory
sections fetched to plan the read are no longer decoded a second time when
the object is opened, sostats.accountingreports their decompressed bytes
once. - SQL log scans build a declared string column's dictionary values once per
dictionary and set of fallback values. A string dictionary shared by a row
group's blocks is decoded once, and its Arrow values are built once per scan
however many blocks and 8192-row batches read it. A block that also shows
resource or scope values in missing cells reads a copy with those values
appended, deduplicated and sorted, so blocks showing the same set of values
share one copy whatever order their streams carry them in; the copy is
freed once no batch reads it, and built again if a later block needs it.
Each batch's declaredstrcolumn carries its own keys over those shared
values instead of a copy of the dictionary. A block whose string cells are
stored plainly checks each cell's UTF-8 once and builds its values once, and
a resource or scope value filling a missing cell is stored once per stream
in the block. Results and the column'sDictionary(Int32, Utf8)type are
unchanged. The SQL response'sstats.accounting.strDictValuesBuiltand the
str_dict_values_builtscan metric inEXPLAIN ANALYZEcount every values
array built, appended copies and rebuilt ones included. Against
--sql-max-query-bytesa scan charges each shared values array once while
it is in use, plus each batch's own keys, where it used to charge a copy of
the block's dictionary per batch; a decoded block is charged the entries of
a row group dictionary its rows reference. In a distributed log query, a
dictionary a worker sends once and its following batches reuse counts once
toward the bytes-scanned limit, on the batch that brought it; a dictionary
sent again counts again. - Log scans evaluate their exact filter a block at a time. A
tswindow or
stream filter that a block's stored time and stream bounds already satisfy is
no longer checked row by row, and the remaining filters run over each block's
decoded columns. Results are unchanged, except on corrupt input (an absent
tsorstream_refcell, or an undecodableattrs_rawcell): the filters
now run one at a time over the block rather than row by row, so which row's
error surfaces first can differ, and whether such a row is reported as an
error or excluded can differ from the filter's written order, because
attribute filters answered fromattrs_rawrun after the column filters.
POST /api/v1/sqlreports two new
counters understats.pruning:blocksPredicateDropped, scanned blocks kept
whole without evaluating any row, androwsPredicateEvaluated, rows of the
other scanned blocks;EXPLAIN ANALYZEshows them as
blocks_predicate_droppedandrows_predicate_evaluated. - The query audit is opt-in, and
--audit-modenow defaults tooff
(ADR-0062 amendment, issue #2791). A process underoffinstalls no audit
pipeline, writes nokind = queryrecord, renders noravel_audit_*
metric family and does not needRAVEL_AUDIT_TOKEN_KEY; a key set there is
accepted and unused.--audit-mode required(fail closed, the recommended
value) and--audit-mode best-effortturn the audit on with the same
behavior as before. A query-serving process (allorquery) refuses an
explicit--audit-text,--audit-max-batchor--audit-max-ageunder
offat startup with a message naming--audit-mode required, so a tuned
deployment cannot lose its audit silently;gatewayandmaintainkeep
ignoring those flags. A query-serving process underoffwith
RAVEL_AUDIT_TOKEN_KEYset logs a warning that the key is unused and names
--audit-mode required. A deployment that relied on the audit without
naming the mode must set--audit-mode required(or
RAVEL_AUDIT_MODE=required) before it runs this release; the
docker-compose quickstart already does. An operator-managed cluster cannot
set it yet: theRavelClusterresource has no field for the mode and
passes noRAVEL_AUDIT_MODEthrough, so its query-serving processes run
with the audit off, and the operator still withholds their Deployment when
neitherauditTokenKeySecretRefnordeploymentKeySecretRefis set,
whatever the mode (#2803). - SQL scans of logs and spans decode their blocks on the read CPU gate
(ADR-1702 follow-up task 8, issue #2668). A SQL scan of thelogs,
spans,alertsoraudittable runs each block decode, and on the
columnar logs path the block's Arrow build with it, as alog_blockor
span_blockjob on the read gate instead of on the tokio worker polling
the scan. SQL scans therefore compete for--cpu-gate-read-permitswith
PromQL, LogQL, analytics and maintenance work. Issue #2795 records this as
an accepted cost;--sql-scan-decode-inline(see Added) puts these
decodes back on the polling worker. - A catalog resolve reads each listed commit record once (issue #2752).
A resolve prewarmed a bucket's level-0 commit records into the per-tenant
record cache and then re-read each from the cache, so once a resolve
touched more records than the cache held, the two passes evicted each
other's entries and every record was fetched twice. The resolve now looks
every listed record up in the cache once, fetches the misses once and hands
the decoded records to the include pass, so a resolve over N uncached
records issues N record GETs whatever the cache cap. This covers the
listing path only: amin_tokenlookup can still re-fetch its record when
a later miss evicted it, compaction records keep their own prewarm and
cache re-read, and rewrite records are not cached. The cache cap bounds the
cache's memory, not what a resolve holds: the records it found cached stay
referenced while it runs, and each in-flight bucket holds its fetched
records, up to--catalog-resolve-concurrencybuckets at once (derived
when unset; 1,024 on a default server). - Upgrade: ravel-server refuses to start on a
sys/qualificationrecord
written at conformance suite version 2. The suite version rises to 3 with
thelisted_keys_round_trip_plus_and_spaceprobe (issue #2637). Before
upgrading the servers of a production store, run this release's
ravel-cli store qualifyagainst each bucket; it replaces the version 2
record in place. A v0.23.0 server accepts the version 3 record, so the
bucket can be qualified before the rollout. The memory store is exempt. - Upgrade:
--max-inflight-flushesnow defaults to 4 per shard (was 1).
A deployment that relied on the old default runs up to four flushes per
shard at once; set--max-inflight-flushes 1to keep the previous
behaviour. The new--max-inflight-flushes-per-tenant
(RAVEL_MAX_INFLIGHT_FLUSHES_PER_TENANT,
spec.gateway.maxInflightFlushesPerTenanton the operator) is refused at
startup when it is 0 or above--max-inflight-flushes; left unset, it
derivesmax(1, N - 1). See the stalled-flush entry under Fixed.
Fixed
- One tenant's stalled flush leaves a flush permit free for a co-resident
tenant's strict writes.--max-inflight-flushesnow defaults to 4
permits per shard, and the new--max-inflight-flushes-per-tenant
(RAVEL_MAX_INFLIGHT_FLUSHES_PER_TENANT,
spec.gateway.maxInflightFlushesPerTenanton the operator) caps how many
one tenant may hold, defaulting tomax(1, N - 1). A tenant at its share
defers its trigger and counts it on
ravel_ingest_flush_trigger_deferred_total. A deferred buffer whose object
reaches 4xtarget_bytesflushes regardless. The isolation has limits: a
share refusal counts toward the shard's flush deferral cap like any other
deferral, and that cap refuses new writes for every tenant on the shard,
and two stalled tenants on one shard can still take all four permits. A
flush, strict or buffered, granted its permit after its pinned ingest
hour's end plus the flush lifetime is now abandoned without a PUT, its
writers answered with a retryable error, and counted on
ravel_ingest_abandoned_hour_bound_total, instead of publishing into an
hour the catalog has already sealed. The server warns at startup when
--max-inflight-flushesis 1. - A columnar log batch with two dynamic columns of the same name and type
is refused atpush_columnar. Previously the second column silently won,
double-counting present rows and losing the first column's values. - The SQL memory pool keeps a legacy grouped aggregate's released bytes
charged until its stream ends (issues #2633, #2720). DataFusion's legacy
grouped hash aggregate shrinks its reservation when it emits, while the
emitted batch still holds those bytes, and the pool used to hand them to
other queries at once. The pool now holds them on the query, tenant and
process budgets until the aggregate's stream is dropped. DataFusion 55.2
runs that legacy aggregate only for the shapes it has not moved to its new
aggregate streams, for example a single-stage aggregate with a limit (such
asSELECT DISTINCT ... LIMITunder--sql-partition-count 1) or over
ordered input. The new streams keep their emitted output reserved
themselves and are not held. The
hold is chosen per stream: it applies to a legacy aggregate DataFusion
marks as unable to spill, and never to a partial aggregate or to a final
aggregate that can spill to disk. While a downstream operator, for example
a Sort, reserves the emitted batches it is handed, the same bytes are
charged twice, so a statement that fits under--sql-max-query-bytes
without the hold can be refused with 422ResourcesExhausted. The extra
charge is bounded by the aggregate's own peak reservation. The sizing
guidance for--sql-max-query-bytesis unchanged: aGROUP BYmatrix
measured on DataFusion 54.1 showed no peak change beyond run-to-run spread,
though a statement that reserves the aggregate's output downstream was not
measured. - Object keys no store operation can reach are refused and reported
instead of silently rewritten (issue #2637). A key thatobject_store
would encode into a different key, such as one holding a control
character,*,#,%, a non-ASCII byte or an empty segment, could be
written beside the intended key or reported deleted while it stayed. Every
get, head, pin, put and delete of such a key now fails with
StoreError::UnaddressableKey, never retried, before any request is sent.
A listing reports such keys in a newunaddressablefield rather than as
objects, andlist_delimitedreports such common prefixes in
unaddressable_prefixes. Each skipped key is logged once per process and
counted onravel_store_list_unaddressable_total.ravel-cli parquet repair --tablenames every such key under the table'sv/prefix, and
repair --strayevery such.pqmkey under no valid table name, escaped
and with the key a request for it reaches; both mark it undeletable by
Ravel and never delete it, with or without--delete. - S3 listings return raw keys, so a key holding a control character no
longer fails the whole listing (issue #2637).S3Store::list,
list_afterandlist_delimitednow send their own signed ListObjectsV2
request instead of listing throughobject_store: the prefix and the
resume key go on the wire as written, keys come back URL-decoded, and an
unaddressable key or common prefix is reported inunaddressableor
unaddressable_prefixeswith the rest of its page intact. A key or common
prefix holding a%not followed by two hex digits is reported there too,
with its still-encoded text, counted in
ravel_store_list_unaddressable_totaland warned about. A page that ends
on a key holding#or*now resumes from that key itself, so the next
page neither skips keys nor repeats them. A listing that repeats a
continuation token, runs past its response ceiling or reports truncation
with no token fails with a typed error instead of looping. The response
ceiling of alistorlist_aftercall counts keyless responses in a
row, 16 at most, and a response carrying a key starts the count again, so
a page over a mostly deleted prefix keeps going while it receives keys;
one call receives at most16 × page_sizeresponses. A 5xx, 408 or 429 is
retried; a 403, 3xx or any other 4xx is not. A 3xx is not followed either,
with or without aLocationheader: it fails as a permanent error that
says to check the configured region and endpoint.store qualifygains
thelisted_keys_round_trip_plus_and_spaceprobe, which checks that keys
holding+and spaces list back verbatim, and the conformance suite
version rises from 2 to 3 with it; see the upgrade note under Changed. - Parquet table listings count the keys the store could not address, and
ravel-cli parquet lsnames them (issue #2637). A resolve or sweep
listing that skips such a key is now counted in a per-tenant count of
listings,resolve::unaddressable_listings, beside the invalid-table
count; nothing exports that count yet, so an operator sees such keys
through the store's warning andparquet ls.TenantListingcarries how
many keys it skipped and the first 16 of them in a newunaddressable
field.parquet lsprints how many keys the store's path encoding cannot
address and names up to 16 of them, escaped and with the key a request for
each reaches. For a value that is neither a readable file nor an
addressable key, such as a missing absolute path,segment inspectand
the other commands that take a file path or a store key fail before
contacting the store, with a not-found error that says the value is not a
readable file and names the key a request for it would reach. - The server's PromQL, LogQL, analytics and SQL
samplesreads now run
their catalog and section decodes and their large PromQL evaluations on the
read CPU gate (issue #2695, ADR-1702). A started server built its query
engine without the gate, so those decodes behind/api/v1/query,
/api/v1/query_range, LogQL, analytics and alert rule evaluation ran on a
tokio worker, as did every PromQL evaluation however many samples it read.
The engine now carries the server's read gate. What moved: RSEG catalog and
section decodes (segment_section), the sparse catalog
(segment_sparse_catalog), and RLOG postings, block and section decodes
(log_postings,log_block,log_section), each counted under
ravel_cpu_gate_jobs_total{gate="read"}(orinline_totalbelow the
256 KiB floor), and PromQL evaluations of at least 100,000 samples, which
run aspromql_evaljobs. The SQLsamplestable's RSEG catalog decodes,
the distributed fragment worker's slice fetches and the startup cache
warmup now run on the same gate, and so do the block decodes of SQL scans
oflogs,spans,alertsandaudit(see Changed), unless
--sql-scan-decode-inlineis set. What did not move, as an ADR-1702
amendment records: RSEG page decodes, an RLOG object's plan-phase
directory sections, an RSPAN object's open (footer, skip index and bloom),
the exemplars endpoint's RSEG decodes, and the alert evaluator's fold of
its own alert-state RLOG objects. These still run inline on a tokio
worker. - OTLP requests are bounded by the label bytes normalization would build.
A metrics, logs or traces request under the 16 MiB body cap could still make
normalization copy hundreds of megabytes of labels: each histogram bucket,
summary quantile, log record and span gets its own copy of the attributes it
inherits. A read-only projection now runs before normalization allocates. A
request projecting overmax_resolved_label_bytes_per_request(256 MiB) is
rejected whole with a partial success and counted under
ravel_admission_rejected_total{reason="resolved_label_bytes"}; a request
under it is charged to the ingest buffer byte budget and shed when the
budget cannot admit it, with HTTP 429 on OTLP HTTP andRESOURCE_EXHAUSTED
on OTLP gRPC. Summary data points with more than 64 quantiles
are rejected the way histograms over 160 buckets already were. - OTAP metrics keep their resource identity. OTAP ingest now reads
RESOURCE_ATTRSand gives each point thejob,instanceand allowlisted
resource labels the OTLP path gives the same input, so series from
different services no longer merge. When a resource repeats a key, the
first row in table order wins, so the two transports agree whenever a
resource's keys are unique. Points under a resource that breaks a resource
limit (attribute count, a complex value or an overlong value on a key the
builder reads) are now rejected, where before they were written without
resource labels. A resource that cannot be read (an unreadable
RESOURCE_ATTRScolumn, a nullparent_id, an unrecognized id encoding)
rejects the points under it instead of being read as no resource; a
METRICSresourcecolumn oridchild of the wrong type rejects every
point in the batch.
Dictionary-encoded attribute columns are now decoded: a
dictionary-encoded string value used to read as empty, and a
dictionary-encoded key column dropped every attribute in its table. OTAP
batches take the same resolved-label byte bound, ingest budget charge and
per-point summary quantile cap as OTLP, and the bound is checked from
value lengths before any label is built. Their dropped resource attributes
count onravel_ingest_resource_attrs_dropped_total, except for a resource
whose only points are exponential histograms, which OTAP rejects as
unsupported. Points stored earlier keep their data, but new points move to
new series when they sit under a labelled resource or come from a producer
that dictionary-encodes its attribute columns; a point under no resource
with plain attribute columns keeps its series. No migration is needed. - An alert history object at an RLOG version this build cannot read no
longer stops alert evaluation. The alert history fold now skips such an
object, counts it on the new
ravel_alert_history_records_skipped_total{reason="unsupported_version"},
and logs a warning naming the tenant and object key, then evaluates the
tenant's rules (ADR-2708 decision D6). Only an object whose bytes match its
commit record's content hash is skipped, so one whose version bytes were
corrupted reads as corrupt: a corrupt or unreachable object still fails the
tick withoutcome="history_unavailable". The
RavelAlertPipelineBlockeddescription no longer claims a blocked tenant
also tripsRavelAlertLoopStalled: the liveness gauge is process-wide. - A grouped aggregate's output slices are charged their own bytes, not the
whole output's, before an exchange, a sort or a nested-loop join (issue
#2720). A grouped aggregate hands its output out as slices of one
materialized batch, and a round-robinRepartitionExec, aSortExecor a
SortPreservingMergeExeccharges each slice the size of the whole batch,
so the charge grows with the number of slices in flight and a statement
that fits the query pool several times over can be refused with "the query
memory pool is full and spill is disabled". ANestedLoopJoinExec(the
plan for a non-equi join) or aCrossJoinExeccharges the batches of its
left input, which it collects, the same way; aHashJoinExecdoes not.
The SQL session now inserts aCompactSlicesExecabove every aggregate
whose output feeds one of those operators; it copies each over-charged
slice into new buffers that hold the bytes its rows reference, so the
consumer charges about the slice's bytes. It
copies each such aggregate output once, into its nested columns (a List's
child range, a Dictionary's keys slice plus each distinct value its keys
point at, a Struct's children), and passes a batch that already owns its
buffers through untouched. A Dictionary whose value type has no per-value
size here (anything but a fixed-width primitive, FixedSizeBinary, Utf8,
Binary, their Large forms and the byte views: a Boolean, List or Map, for
example) counts its values in full.samples.labels, a Dictionary of Map,
is one, so a slice whose bytes are mostly labels values can still pass
through with the over-charge: over-counting passes an over-charged batch
through, where under-counting would cost a copy. In the regression test's
labels query (2,560 groups in 10 slices) all 10 slices are copied and none
passes through.concatthrough a Map or FixedSizeList copies exactly the
rows of a plain child but keeps a byte-view or Dictionary child's buffers
whole. A Dictionary whose value type arrow's cast cannot pack (Boolean,
List, Map and others: the cast errors), or whose values hold a null (every
value of a Null value type is one), is copied byconcatinstead and
keeps its values whole unlessshould_merge_dictionary_valuesmerges
them, which it never does for a Boolean, List or Map value type. A
ListView, LargeListView, RunEndEncoded or Union column is over-counted, so
a batch carrying one tends to pass through uncopied; its values stay
correct.EXPLAINshows the operator andEXPLAIN ANALYZEits
copied_bytes,compacted_batchesandpassed_through_batchesmetrics.
A hash or rangeRepartitionExecgets no copy, for a narrower reason
than owning its buffers: itstakereuses a Utf8View or Dictionary
column's data buffers and each partition's piece is a slice of the taken
batch, and it is the exchange's coalescer, copying pieces of at most half
abatch_size, that bounds the charge there; a piece above that size
(two partitions, or skewed keys),preserve_orderand unbounded input
keep the over-count. The regression test (aHAVING ... ORDER BY ... LIMITgrouped aggregate over 20,000 groups in 79 slices, 4 partitions)
measures the peak at 6.0x the
aggregate's output without the operator and 2.2x with it, checks every
column of the output is the same on both sides, and at a pool of 4x the
output (8,844,276 bytes) the run without the operator is refused with the
spill-disabled error and the run with it answers. Upstream:
apache/datafusion#24704. - A stored object outside this build's reader window is reported as
unsupported, not as corruption. When a metrics (RSEG), logs (RLOG) or
spans (RSPAN) data object's trailer declares a format version this build
does not read, and the object's bytes match the content hash recorded for
it, a PromQL or SQL query now answers HTTP 422executionwithstored object version N is outside this build's reader window; it needs migration, where it used to answer 500 "stored data failed integrity
validation". The SQLlogstable gives the same answer, without reading
the object, when the commit record itself declares such a version, and
names that version as recorded even when it does not fit in 16 bits. A
distributed worker reports the object asUnsupported, so the coordinator
runs the query locally. Three lanes do not yet give the 422: a spans
lookup that pins atrace_id, which reads the object by range and reports
an out-of-window trailer as corruption without checking the hash; a
statement over the distributed Flight SQL fan-out, where the coordinator
reports a worker's refusal as an internal error when the commit record's
version is in the window and only the trailer's is not (#2843); and a
federated query whose remote cluster refuses the object, which is treated
like an unavailable remote: a retryable 503 by default, or 200 with
partial results and theremote cluster X unavailable; results are partialwarning whenskip_unavailableis set. An object whose trailer
version does not match its recorded content hash is still reported as
corruption (500), with "content hash mismatch" in the server-side error.
Confirming the hash costs no extra request when the read that refused the
version already holds the whole object. Otherwise, for metrics and logs,
the object is read once more in 8 MiB ranges, each admitted by the GET
limiter and the fetch memory budget, and each range's request and wire
bytes are charged to the query phase whose read refused the version;
spans hash the bytes already fetched. - One out-of-window compaction input no longer stops compaction of a whole
shard. An L0 object whose format version this build does not read, with
bytes that match its commit record's content hash, now holds its own bucket:
nothing is published for it, a warning names the object and version, and
the newravel_maintain_buckets_held_out_of_window_totalcounter moves by
one per held bucket per pass. This includes a metrics input whose commit
record carries the newer version. Later hours still compact, the held
bucket is retried every pass, and the unit is not reported as stalled. An
object whose bytes do not match its content hash is still treated as
corruption and fails the scan.ravel-cli maintain compact-tenantreports
held buckets on a newheld_out_of_windowsummary line. - A memory budget refusal of a segment fetch or a catalog decode now
answers 422, not 503 (issue #2732, ADR-2633 section 5). Until now the
fetch-layer refusal (FetchMemoryExhaustedon the metrics, log and span
fetchers) and the catalog decode refusal (CatalogError::MemoryExhausted)
answered 503unavailablewith "upstream storage temporarily unavailable"
(ADR-1702 decision 6 and the HTTP error redaction, per ADR-2633 section 5),
so a process short of memory told clients that storage was down. On the
PromQL HTTP API, the SQL HTTP API and Flight SQL they now take the status
the SQL memory pool's own refusal takes: 422executionover HTTP and
FailedPreconditionon Flight SQL, with the budget's own message. A
refusal by the ledger's limit reads "memory exhausted: requested N bytes, R
of L byte limit already reserved", and a refusal by the new host-memory
gate (see Added) takes the same status and reads "memory exhausted: host
available memory A bytes is below the F byte floor (requested N)". A SQL
column-statistics decode refusal and a refusal relayed from a distributed
query worker take the same status. The message carries byte figures only,
never an object key or a tenant value. A client that retried these on 503
should treat a 422 whose message contains "memory exhausted: " the same
way. On PromQL the message starts with the path's own prefix, such as
"fetch memory exhausted:" or "catalog decode refused:"; SQL and Flight SQL
wrap it further, for example "segment fetch failed: fetch memory
exhausted: ..." or "snapshot resolution failed: catalog decode refused:
...". A catalog decode charge the host-memory gate refuses does not run
the decoded-cache eviction pass or its retry; a refusal by the ledger's
limit runs both when evicting cached decodes could make room. - A dictionary-encoded float GROUP BY key or
SUM/MIN/MAXargument
keeps the single-partition final aggregation (issue #2901). Deciding
whether a grouped aggregate's final stage may be split across partitions,
the SQL engine now looks through a dictionary to its value type, so a
dictionary of floats is treated as a plain float column is. - A SQL
__name__filter no longer prunes rows another part of the
statement still reads. The equality__name__predicate on one branch of a
UNION ALL, one side of a self-join, or the outer query of an
IN (SELECT ...)subquery pruned the snapshot every scan in the statement
reads, so the other scans returned no rows from segments without that
metric. The same predicate written above a window function or an
ORDER BY ... LIMITin a derived table pruned the rows that node ranks, so
row_number()and the limit saw only the filtered metric. The prune key is
now derived per scan from the filters that bind that scan's rows directly,
and the snapshot is pruned only when every scan ofsamplesrequires the
same__name__value. AVG(DISTINCT ..)now averages the distinct values in every statement
shape. Before, it returned the plain average of all the rows when the
statement also had aDISTINCTaggregate over a different argument, a
non-distinct aggregate other thanSUM,MINorMAX(such asAVG(b)),
or aFILTERorORDER BYclause on any aggregate in the statement, with
or withoutGROUP BY(issue #2930). A statement DataFusion rewrites into a
group by, such asAVG(DISTINCT a)alone or besideCOUNT(DISTINCT a)or
SUM(b), was already correct and is unchanged.AVG(DISTINCT ..)over an
integer argument stays exact and keeps its partitioned final aggregation.
Added
ravel_maintain_compactions_in_flightreports bucket merges in
progress. The gauge rises when a merge starts, after its gates and, for a
run that takes a claim, its claim, before its first catalog or block read,
and falls when the merge publishes, fails, is abandoned, or its task is
dropped. The same points logcompaction merge startedand
compaction merge endedwith the bucket's commit prefix, the end line with
anoutcome=(published,converged,abandoned,skipped,held,
failed,cancelled,dry-run, ordropped). The nightly chaos scenario
that kills a maintain worker mid-compaction now fires its kill on this
gauge instead of on the worker's log. Its conservation check takes every
bucket the killed worker still had open, each start line with no end line
(a worker merges several units at once), waits up to the takeover bound
plus one maintenance tick plus a 300 s merge allowance after the kill
(ending early once the surviving worker has logged a publish for each of
them), and then passes only when the object store holds a compaction record
for each of them, whichever worker wrote it. It logs the merge durations it
can pair from both workers' logs. The scenario's load stops at 1500 s
whatever count it has reached, and the scenario stops as could-not-measure
when fewer than 20 of its exports were accepted.- The real-S3 performance envelope is committed, and every weekly bench-s3
run is compared against it.bench/baselines/s3-envelope.jsonholds five
runs of the weekly lane at one load point and the min and max of each
compared figure;scripts/bench-s3-compare.pywarns on a latency figure
past the max plus 25 percent, a GET, LIST, billed attempt or byte count
past the max plus 10 percent, and any change in PUTs, accepted points or
matched series, and refuses a report from a different environment. The
lane runs it after every run and never fails on it. The cost-model guide's
new "Measured envelope" section quotes the range, and
scripts/bench/fresh-box.shrecords a tier B timing baseline on a fresh
EC2 instance that it terminates afterwards. - A writer refuses to publish below a bucket's recorded format floor. An
ingest write, amaintainprocess's compaction or erasure rewrite, or a
ravel-clicompaction ormaintain migraterun that would write an object
below the tenant's recorded floor for its format family is refused before
any PUT. An ingest write, strict or buffered, is refused at admission, before
it is buffered, with HTTP 503; rows already buffered when a refresh raised
the floor are dropped when their flush opens. Ingest andmaintain
refusals count underravel_format_floor_refused_total{family}. A
ravel-clirefusal is not counted anywhere, sinceravel-clirenders no
/metrics: the command fails with the refusal, naming the family, floor and
version, on stderr and exits 1. At startup each ingest andmaintain
process warns once per bucket of its--tenant-token,
--tenant-token-fileand--maintain-tenanttenants whose floor is above
what it writes, and setsravel_format_floor_above_writer{family}; it
starts either way.--write-below-format-floorwrites those objects
instead, counts each underravel_format_floor_writes_below_total{family},
and leaves the floorcontradictedforravel-cli maintain audit-versions
(ADR-1746). - A corrupt format-floor history stops ingest for its tenant and signal.
The ingest routers now decode the floors from the provisioning record they
read for routing, so a record whose floor history fails validation, in any
family, fails that read like a corrupt generation history: writes are
refused withStaleProvisioningView(HTTP 503). For a tenant with no cached
view this is immediate; for one with a cached view it starts when the
view's grace window ends. Amaintaincompaction or erasure rewrite of that
tenant's buckets fails its floor read and writes nothing. - A logs load can seal the hours it wrote, and a fold can seal the hour it
runs in.ravel-cli load --fold-after-loadfolds the tenant's logs catalog
once the load succeeds, sealing through the latest ingest hour the load wrote,
so the next query resolves those hours from the snapshot instead of listing
them; the summary prints the fold's figures, and its time is part of the
load's elapsed. A metrics or spans load with the flag is refused before any
row is read, and so is a logs load whose current ingest hour the logs HEAD
has already sealed, since its objects would be invisible to queries without
a commit token. After the fold, the load checks that the snapshot of the
HEAD it left holds every commit the load published, directly or through a
compaction or rewrite it holds; a commit missing from it (for example
because another fold sealed its hour while the load was writing and the seal
margin passed that hour before the load's own fold), or a HEAD
or part the check cannot read, makes the load exit non-zero naming the hours
and up to ten of the missing commits, or saying the check could not be
made. A fold with nothing left to seal succeeds when that snapshot holds
every commit, and the summary line prints the parts, buckets and records
the check read.ravel-cli catalog fold --writers-stoppedseals through
the hour the fold runs in, without moving its clock. Both assert that no
other writer will publish into those hours and are unsafe under a live
writer (ADR-2677). - An hour sealed early by
--writers-stoppedor--fold-after-loadstays
open to late commits until its natural seal. Every fold, the scheduled
fold included, re-lists each hour above its own seal margin hour and at or
below the HEAD watermark, one LIST per shard, and folds any commit the
snapshot does not hold, so a commit another writer publishes into such an
hour is visible to queries without a commit token from the next fold. A
commit published after the natural seal stays invisible until a HEAD
rebuild. Besides those LISTs, a fold reads each snapshot part covering the
held-open hours once whenever their listing names any commit record, and
loads the whole snapshot when a listing names a commit HEAD does not hold,
when a held-open hour was compacted before its seal, or when a targeted
re-fold request is queued; a compacted held-open hour or a queued request
costs that load on every fold while hours are held open. A fold whose seal
margin already covers HEAD's watermark issues no extra request. A load
whose hours another fold sealed while it was writing succeeds with every
commit in the snapshot, as long as its own fold runs before those hours'
natural seal. A fold over held-open hours also runs a queued targeted
re-fold request, so the fold report'srefold_hours_reconciledcan be
above zero on a no-op fold. - The SQL JSON response reports per-stage wall times and pruning counts.
POST /api/v1/sqlnow returnsstats.timings(the successful attempt's
resolve, plan, stream start, first batch and drain wall times, the audit
wait, the attempt count, and the logs scan's cross-partition timers) and
stats.pruning(segments resolved, segments skipped by typed attribute
column statistics, and blocks seen, read and ruled out by POSTINGS). The
five executor stages are sequential and the scan timers overlap them;
none of them sums to client latency.stats.timings.scanscounts the
plan's logs scans;planInitMs,firstBatchMinMsandstreamMaxMsare
rendered only when it is 1, and the eight counts aftersegmentsare sums
over scans;segmentsis the snapshot's count.
stats.phasesandstats.ioare unchanged; Arrow-IPC, Flight SQL and MCP
responses carry neither new object. ORDER BY ts LIMIT kover logs skips blocks and segments that cannot
reach the result. Once the TopK holdskrows, a logs scan skips every
block, and does not open any segment for its blocks, whose minimumtsis
strictly above the TopK's current worstts, and it opens segments in
ascending minimumtsso that threshold tightens early. On the
whole-segment fast path a skipped segment is never fetched, and neither is
a segment the scan opens unplanned (at or under the plan bound; see
Changed). On the planned path (a block predicate, atsbound that cuts a
segment) the plan phase has already read each planned segment's footer and
directories and counted its blocks inblocksTotal, so for those the skip
saves only the block reads and decodes. The answer is unchanged, ties and
a second sort key included. Only an
ascending, nulls-last TopK on the baretscolumn is served: a
descending orNULLS FIRSTTopK, a non-tsleading key, and the
dynamic filters of aggregates and joins skip nothing and keep the scan's
usual visit order and open pipelining.stats.pruningreports the skips
asblocksSkippedByThresholdandsegmentsSkippedByThreshold, and
EXPLAINshowstopk_threshold=tson a scan that acts on the threshold
(ADR-2677).ravel-server --format-window-check {off|warn|refuse}reports catalog
entries outside this build's reader window at startup (ADR-2708 D5c). The
check is off by default (offreads nothing) and is enabled withwarnor
refuse, which download the catalogs below before any listener binds and
can take up to the timeout. For each statically known tenant
(--tenant-token,--tenant-token-file,--maintain-tenant,
--alert-rules-file) and each of metrics, logs, spans, alerts and audit,
the server reads the catalog HEAD and its snapshot parts and counts entries
whose recorded format version the readers would refuse (nothing folds alerts
or audit today, so those two report nothing).warnlogs one line per
(signal, version) with the count and starts;refuseexits non-zero before
any listener binds, naming the signal and version. A store error is reported
as a check that could not run, andrefuseexits non-zero on it. The check
reads up to 8 (tenant, signal) pairs at once and stops at
--format-window-check-timeout(default20s); pairs not finished by then
are logged as not checked underwarnand makerefuseexit. It costs one
logical read (GET) per tenant and signal plus one per snapshot part (the
store may split a large part into ranged requests), downloads each known
tenant's folded catalog, and issues no LIST, so commit records not yet
folded are not checked. The maintain IAM role's tenant bootstrap list grant
now names the alerts and audit catalog HEADs, so the check reads an absent
one as absent rather than denied. See "Format crossings at startup" in the
maintenance guide.- A memory gate samples host memory and jemalloc, purges under pressure,
and refuses memory reservations when the host is close to running out
(issues #2730, #2806, #2838). Eachall,queryandmaintainprocess
runs aravel-memory-gatethread that reads host available memory and
jemallocstats.residentevery--memory-gate-interval-ms(default 100).
Host available memory isMemAvailablefrom/proc/meminfo, or under a
finite cgroup memory limit the smaller of that and the cgroup's headroom
(memory.maxminusmemory.currentplusmemory.stat's
inactive_file), re-read on every sample. The gate closes on that
reading, never on the process's resident size. Below
--memory-gate-purge-available-bytes(default the smaller of twice the
close floor and a quarter of host memory) the thread forces a purge of
every arena's dirty and muzzy pages, at most once per
--memory-gate-purge-min-interval-ms(default 5000), restores their decay
settings, and re-reads. After--memory-gate-close-after-samples
consecutive samples (default 3, accepted 1 to 100) below
--memory-gate-min-available-bytes, the gate closes and refuses memory
reservations; it reopens on the first sample at or above that floor. At
the default interval three samples span about 200 ms, so a dip shorter
than that never closes the gate.
The close floor defaults tomin(max(512 MiB, 2 % of host memory), host memory / 8)(687 MB on a 32 GiB host, 128 MiB on 1 GiB; a derived floor
under the flag's 64 MiB minimum is accepted). Startup refuses a flagged
purge floor not above the close floor, a flagged close floor at or above
host memory, and a close floor flagged at or above a quarter of host
memory unless--memory-gate-purge-available-bytesis also passed; a
derived configuration never refuses. A refusal names the host's available
memory and the floor. The gate is off ingatewaymode, with a
fallback-sized budget, under--disable-memory-gate, without jemalloc,
and whenMemAvailableorMemTotalcannot be read
(disabled-no-host-memory); thememory gate resolvedstartup line says
which and stampsavailable_source(meminfoormeminfo+cgroup) and
close_after_samples.--memory-gate-wait-msis resolved and stamped but
not yet read. New/metricsfamilies:ravel_memory_gate_resident_bytes
(the last resident reading),ravel_memory_gate_available_bytes(the last
available reading, which shows a dip the gate stayed open through),
ravel_memory_gate_available_floor_bytes,
ravel_memory_gate_purge_floor_bytes,ravel_memory_gate_purges_total,
ravel_memory_gate_samples_total,
ravel_memory_gate_samples_below_floor_total(every sample below the
close floor, whether or not it closed the gate),
ravel_memory_gate_epoch_refresh_seconds_total,
ravel_memory_gate_purge_seconds, andravel_memory_gate_refusals_total
andravel_memory_budget_refusals_totalbysite. - Spans
trace_idlookups read the trace's block run by range. A lookup
that pins atrace_idreads the object's 64 KiB tail (the footer and, when
it reaches them, SKIP_IDX and BLOOM), then the trace's whole SKIP_IDX block
run in one ranged GET, pruned blocks inside the run included, never the
whole object throughGetRange::Full; only the run's blocks that pass the
skip-index and bloom prune are decoded. A caller-supplied block set is
instead read as one ranged GET per contiguous run of its intersection with
the candidate blocks. A pruned block read as part of a run is neither
decoded nor counted inblocks_after_skiporblocks_scanned. The probe
phase carries the tail probe and the section reads, and the scan phase
carries the block runs, requests and wire bytes as transferred; a run the
tail probe already holds (an object no larger than the probe) is sliced out
of it, issues no GET, and so adds nothing to the scan phase. The process
read cache now fronts span reads as it fronts logs and metrics reads, keyed
by tenant, object content hash, offset and length, so a repeated lookup
issues no GET.
RspanRangeReader::block_run_spanreads one explicit contiguous block run
and refuses any other set. EXPLAIN ANALYZEon a spans query reportsblocks_decoded. The
SpansScanExecline now carries ablocks_decodedpartition metric, the
RSPAN blocks the scan decoded, and its plan line printsts=[lo, hi]when the
query bounds the start time. A partition whose columnar attempt falls back to
the row path counts the abandoned attempt's blocks as well. The distributed
logs and spans scan node,DistributedSliceScanExec, prints
pushdown=spans|logs|none; production plans do not contain that node yet.
The SQL slice ticket can now carry the coordinator's time bounds, trace id
and logs prune predicates, as version 9 of the ticket, for the distributed
logs and spans path that #2899 will serve; a ticket without them is
unchanged at version 8.- Fetch one trace by id, with or without a time range.
GET /api/traces/<trace_id>(sqlfeature) returns every span of a trace
as rows of thespanstable, under the same envelope, authentication,
limits, deadline and query audit record asPOST /api/v1/sql. The id is 32
hexadecimal characters in either case; anything else is a 400bad_data,
and a trace the tenant does not hold is a 200 with zero rows.startand
endare optional. A lookup pinned to one trace id with no explicit start
resolves from time zero, so it covers every folded part and the unsealed
tail the tenant still retains, instead of the one-hour default; explicit
bounds are kept exactly. Its cost grows with retention. The published
image serves this route. The MCP toolravel_get_traceis now served
through the same lookup under the tool's row budget, withtime_range
optional and the same rule when it is omitted; it needs themcpfeature,
which the released images do not build. On the HTTP routestartand
endchoose which objects are read and filter no rows; the tool's
time_range, when given, also drops every span that starts outside it.
POST /api/v1/sqlkeeps its one-hour default for every statement,
including one that pins atrace_id. --sql-scan-decode-inlineputs the SQLlogsandspansscan-block
decode back on the polling worker (envRAVEL_SQL_SCAN_DECODE_INLINE,
default off). When set, those scans, and thealertsandaudittable
scans that read through the same logs fetcher, decode their blocks inline
instead of on the read CPU gate, and every gate site their fetchers use
(log_block,log_postings,log_sectionandspan_block) counts
nothing for SQL statements. The catalog, PromQL, maintenance and SQL
samplesgate sites keep the gate. Startup logs which mode the SQL scans
run in. The flag exists to A/B the gate's cost against its liveness
benefit (issue #2795); setting it gives up the isolation the gate gives
scans.- Ingest routers can enqueue a strict write and await its acknowledgement
as two steps.submitcharges the byte budget and sends the rows to
their shards, and the returned handle'sackswaits for the commit
records;writeremains the two in sequence, so callers see no change.
Each router takes a sharedPendingAckBudgetthat bounds pending strict
acknowledgements (0 = unlimited) and refuses a strict submit past it with
a retryable error before anything is charged or sent, and the router
metrics report the held count and the refusals.ravel-serveruses the
two steps and sizes one budget for its three routers from
--max-pending-strict-acks(next entry, #2797). TheIngestConfigfield
max_pending_strict_acks(default 8,192) only records the default an
embedder passes; no router reads it. Theravel-ingest-routerservice
proxies requests and applies no such bound. - Strict ingest writes no longer hold an in-flight ingest slot while they
wait for their durability acknowledgement, and a new
--max-pending-strict-acksbounds those waits instead. The
--max-inflight-ingest-requestspermit is now returned once a request's
points are enqueued, so that ceiling counts requests reading and decoding at
once rather than strict writes parked on a flush, and a slow flush no longer
sheds unrelated buffered traffic at the request head. The new flag
(RAVEL_MAX_PENDING_STRICT_ACKS, default 8,192,0for unlimited, refused
at startup above the tokio semaphore maximum) is one process-wide budget
shared by the metrics, logs and traces pipelines. A strict write over it is
refused after decode and before anything is buffered, with HTTP 429,
Retry-After: 1and "process pending strict-acknowledgement limit reached",
or gRPCRESOURCE_EXHAUSTED./metricsreports the current count as
ravel_ingest_pending_strict_acksand the refusals as
ravel_ingest_pending_ack_shed_total. - A strict write can ask for its flush on arrival. With the arrival
policy, the shard flushes the write from inside its handler instead of
waiting for the age tick, so the acknowledgement follows two storage
round trips rather thanmax_flush_delay. The flush opens only when the
tenant has no flush in flight on that shard; later arrivals coalesce into
one flush when it completes, so a tenant issues at most one arrival flush
per flush duration per shard. The acknowledgement contract is unchanged,
and the aged flush stays the default. Thex-ravel-ingest-modeheader and
--strict-flush-policyselect the policy (next entry). The ingest metrics
count arrival flushes and coalesced writes separately. - Strict writes can flush on arrival, per request (per stream on OTAP) or
process-wide. Thex-ravel-ingest-modeheader on OTLP HTTP, OTLP gRPC
and OTAP accepts two new values:strict-arrivalopens the write's flush
as soon as it is buffered instead of waiting for the--max-flush-delay
age threshold, andstrict-agedkeeps the age-threshold flush. On OTAP
the header applies to the whole stream. The new server flag
--strict-flush-policy aged|arrival(environment variable
RAVEL_STRICT_FLUSH_POLICY, defaultaged) sets the policy forstrict,
an absent header and an unknown value, and is the only selector for
Prometheus Remote Write, which reads no header. Both policies acknowledge
on the same terms;arrivallowers strict write latency and can raise
the PUT rate up to 20 times for a tenant sending ten strict requests per
second on one shard./metricsreports
ravel_ingest_flushes_by_arrival_totaland
ravel_ingest_arrival_coalesced_total. - Per-site CPU gate handoff and post-return times on
/metrics. Two new
summaries,ravel_cpu_gate_handoff_seconds{gate,site}and
ravel_cpu_gate_return_seconds{gate,site}, each a_sum/_countpair,
time a gated job's trip fromspawn_blockingto its first instruction on
the blocking pool, and from its last instruction back to the waiting caller
resuming. Inline jobs record neither; a job that panics or whose caller
stopped waiting records its handoff and no post-return (ADR-1702, handoff
and post-return amendment). ravel-cli sql explainprints a statement's plan, and with--analyze
the executed plan with per-operator metrics. Operators that register
DataFusion's baseline metrics show their ownoutput_rowsand
elapsed_compute; the slice-compaction and logs-scan nodes show their own
counters instead. An--analyzerun ends with the exact row count, or,
when--max-rowsstopped it, withrows: <max-rows>+ (stopped at --max-rows). The subcommand exists only in a--features sql-explain
build, which the released images do not use, and refuses to run without
--unaudited, because it writes no query-audit record. The statement
passes the same read-only gate asPOST /api/v1/sql, which still refuses
EXPLAIN. Parquet tables are not supported.--sql-partitions 0is
refused before any store request, as the server refuses a zero
--sql-partition-count.--startequal to--endis accepted, matching
POST /api/v1/sql; only--startafter--endis refused.
What's Changed
- fix(logseg): refuse duplicate dynamic columns in a columnar batch by @pmoust in #2660
- test(ingest): assert the router's per-shard batches pass validate by @pmoust in #2663
- ci(chaos): keep the scenarios' process logs when a run fails by @pmoust in #2676
- feat(server): require the dedicated fragment listener (ADR-1689 release B) by @pmoust in #2684
- feat(object-store): classify unaddressable keys and refuse them by @pmoust in #2657
- fix(sql): hold an aggregate's released bytes until its stream ends by @pmoust in #2685
- fix(chaos): declare the tenant-hash scheme on every server the lane starts by @pmoust in #2699
- docs: add ADR-2677 ClickBench floor, fetch and pruning by @pmoust in #2678
- ci: prove verify-protection's negative path against RustFS by @pmoust in #2701
- feat(object-store): list S3 with raw keys over a signed request by @pmoust in #2693
- feat(sql): decode logs and spans scan blocks on the read CPU gate by @pmoust in #2715
- fix(dr): run the rehearsal self-test and give the server its audit key by @pmoust in #2700
- docs: add ADR-2633 resident-aware memory admission by @pmoust in #2661
- chore: remove unused files and history chatter from docs by @pmoust in #2726
- fix(dr): stop restore-check's phase log line being read as a printf option by @pmoust in #2736
- feat(sql): report per-stage wall times and pruning counts in SQL stats by @pmoust in #2735
- feat(cli): fold the hours a bulk load wrote, inside its load time by @pmoust in #2728
- docs(adr): defer ADR-2677 decision 3, the loop-stable read cache by @pmoust in #2719
- feat(pqtable): count unaddressable keys in resolve, sweep and ls by @pmoust in #2702
- feat(memory): add the resident gate state and refusal cause by @pmoust in #2746
- feat(bench): add the ADR-1702 saturation bench scenarios by @pmoust in #2717
- docs: cut history and process chatter from the normative specs by @pmoust in #2740
- docs: add ADR-2708 for the due-diligence P1 fixes by @pmoust in #2721
- ci: remove the per-PR quickstart job by @pmoust in #2741
- fix(server): count durable auth in the federation tenant guard by @pmoust in #2742
- docs(object-store): finish ADR-2637 docs and the listing review findings by @pmoust in #2743
- fix(catalog): hold operator-sealed hours open to late commits by @pmoust in #2745
- ci(guards): require a release note naming every signal on a format bump by @pmoust in #2766
- fix(server): run the PromQL engine's read work on the read gate by @pmoust in #2769
- feat(sql): skip logs blocks above the TopK threshold for ORDER BY ts by @pmoust in #2771
- feat(bench): commit the real-S3 envelope and a fresh-box launcher by @pmoust in #2765
- fix(chaos): make both nightly scenarios reach their kill points by @pmoust in #2770
- feat(server): sample resident memory and purge at the gate mark by @pmoust in #2764
- fix(bench): check fresh-box paths before launching an instance by @pmoust in #2775
- docs(chaos): name the compactor's seal margin as the gate the wait clears by @pmoust in #2776
- fix(otlp): bound requests by projected resolved-label bytes by @pmoust in #2778
- feat(catalog): stamp provisioning version 3 and record a floor's basis by @pmoust in #2779
- test(server): wait for the gate gauges before asserting the memory gate scrape by @pmoust in #2792
- docs: add ADR-2773 build each column once on the logs hot path by @pmoust in #2785
- chore(bench): keep the fresh-instance run as the tier B baseline by @pmoust in #2800
- docs: add ADR-2793 strict flush-on-arrival and permit release by @pmoust in #2794
- fix(ingest): give each tenant a flush share and bound the deadline by its hour by @pmoust in #2802
- docs: add ADR-2707 exact-key index for spans and logs by @pmoust in #2784
- perf(logseg): decode an integer page once into the Arrow buffers by @pmoust in #2808
- feat(ingest): split router writes into submit and acks by @pmoust in #2809
- fix(ravel-server): close the memory gate on host available memory by @pmoust in #2810
- Make the query audit opt-in, off by default by @pmoust in #2804
- docs: say the query audit is off by default where four docs assumed it by @pmoust in #2822
- fix(server): skip and count an unreadable object in the alert fold by @pmoust in #2823
- perf(catalog): read each commit record once per resolve by @pmoust in #2814
- perf(otlp): project a request's label bytes once by @pmoust in #2827
- perf(sql): build declared Str dictionary values once per dictionary by @pmoust in #2830
- feat(ingest): flush a strict-arrival write inside the handler by @pmoust in #2835
- Dispatch guard, push guard and spec template: three friction fixes from the coordination round by @pmoust in #2816
- feat(sql): read sub-bound log segments once when they fill the partitions by @pmoust in #2824
- feat: run the write path and maintenance codec work on the CPU gates by @pmoust in #2807
- fix: answer fetch and catalog-decode memory refusals with 422 and the budget class by @pmoust in #2841
- fix(server): close the memory gate only after consecutive sub-floor samples by @pmoust in #2842
- perf(logseg): evaluate the RLOG content predicate per block by @pmoust in #2837
- fix(query): report an out-of-window object as unsupported, not corrupt by @pmoust in #2846
- docs(adr-1170): amend for the ADR-2633 host-memory gate and list the gate metrics by @pmoust in #2847
- guards: refuse enqueue when main gained a struct literal or call the branch's shape change breaks by @pmoust in #2845
- fix(maintain): hold an out-of-window bucket and keep compacting by @pmoust in #2853
- feat: refuse writes and publishes below a recorded format floor by @pmoust in #2855
- docs(adr-2708): cite the alert fold by name and record the single walk by @pmoust in #2856
- feat(server): report out-of-window catalog entries at startup by @pmoust in #2828
- feat(query): read a trace by its block run and cache spans reads by @pmoust in #2833
- feat(server): select the strict flush policy by header and flag by @pmoust in #2852
- chore(bench): self-terminate every measurement box at ten hours by @pmoust in #2860
- fix(otap): give OTAP points the OTLP resource labels by @pmoust in #2863
- feat(maintain): gauge compactions in flight, kill chaos mid-merge by @pmoust in #2866
- docs: add ADR-2867 development speed, seven structural changes by @pmoust in #2868
- feat(server): release the ingest permit at enqueue by @pmoust in #2885
- chore(deps): upgrade DataFusion to 55.2 and arrow/parquet to 59 by @pmoust in #2774
- feat(cpu-gate): per-site handoff and post-return times by @pmoust in #2896
- docs(chaos): describe the multi-bucket conservation oracle everywhere by @pmoust in #2882
- fix(scripts): gate fleet executors on the scoped closure and its lanes by @pmoust in #2895
- chore(server): drop the inert pending-ack mirrors and rename the OTAP test by @pmoust in #2897
- docs(adr): amend ADR-2773's Set L band with the measured outcome by @pmoust in #2883
- feat(ravel-cli): derive load object geometry for 250,000-row objects by @pmoust in #2884
- feat(ravel-sql): carry scan pushdown in distributed slice tickets by @pmoust in #2905
- docs: add ADR-2887 ES|QL query frontend by @pmoust in #2906
- feat(server): add --sql-scan-decode-inline to decode SQL scans inline by @pmoust in #2923
- feat(esql): add ravel-esql with lexer, guard and core pipeline parser by @pmoust in #2925
- refactor(sql): split logs_scan into plan, scan and threshold modules by @pmoust in #2924
- test(sql): pin the TopK threshold skip by order, not by scheduling by @pmoust in #2903
- feat(bench): add the ClickBench measurement kit and its bands by @pmoust in #2919
- fix(ci): ignore RUSTSEC-2024-0449 for the operator test-only YAML parser by @pmoust in #2936
- fix(sql): run avg over a dictionary-encoded integer on the exact path by @pmoust in #2929
- feat(ravel-server): default loopback stores to latency-first, 24% cache by @pmoust in #2917
- feat(guards): check that ADR band tables cite their sources by @pmoust in #2932
- fix(sql): cast a numeric-dictionary function result to its value type by @pmoust in #2940
- docs: add ADR-2904 cross-signal SQL statements by @pmoust in #2908
- feat(server): fetch a trace by id without a time range by @pmoust in #2937
- docs(server): say which avg inputs run a parallel final aggregation by @pmoust in #2951
- docs(adr-2867): a profile-derived band names its share kind by @pmoust in #2942
- docs(server): say what runs on the read CPU gate in its permits help by @pmoust in #2954
- refactor(server): split the ingest handlers into decode, admission and mode by @pmoust in #2955
- feat(guards): compare dispatch entries against PR hunks by @pmoust in #2959
- feat(ravel-codec): add KEY_IDX exact-key section grammar by @pmoust in #2960
- test(bench): measure the CPU cost of a post-decode pending-ack refusal by @pmoust in #2939
- feat(cli): add sql explain --analyze behind the sql-explain feature by @pmoust in #2962
- refactor(sql): run statements through a lowering the driver can repeat by @pmoust in #2965
- chore(deps): bump rustls to 0.23.46 for RUSTSEC-2026-0346 to 0349 by @pmoust in #2972
- docs(query-engine): point metric readers at sql explain --analyze by @pmoust in #2970
- feat(rspan): write and read trailer v5 with a KEY_IDX trace_id index by @pmoust in #2973
- fix(cli): tighten sql explain partitions, row cap line and window by @pmoust in #2974
- fix(sql): derive the name prune key per samples scan by @pmoust in #2957
- docs(adr-2793): decide that head refusals drain the request body by @pmoust in #2978
- docs(audit): say a cancelled Flight stream's record is best-effort by @pmoust in #2982
- docs(adr-2793): decide to take the pending-ack permit at the head by @pmoust in #2979
- fix(sql): average the distinct values in every AVG(DISTINCT) shape by @pmoust in #2981
Full Changelog: v0.23.0...v0.24.0
Downloads
The attached binaries were extracted unmodified from the signed container
images this release published, so each one is byte-identical to the file inside
the image you can pull. They are glibc-dynamic, built against Debian 12
(the runtime image is gcr.io/distroless/cc-debian12), so they need glibc 2.36
or newer. On an older distribution, run the container image instead:
docker pull ghcr.io/nofireai/ravel-server:0.24.0One binary per platform, named <binary>-<os>-<arch>:
ravel-server-linux-amd64,ravel-server-linux-arm64ravel-cli-linux-amd64,ravel-cli-linux-arm64ravel-operator-linux-amd64,ravel-operator-linux-arm64ravel-ingest-router-linux-amd64,ravel-ingest-router-linux-arm64
Verifying the downloads
SHA256SUMS covers every attached binary and symbol archive. Check the files
you downloaded, then verify SHA256SUMS itself against the signature and
certificate beside it. The signature is keyless, bound to this release
workflow's identity, so there is no key to obtain:
sha256sum --check --ignore-missing SHA256SUMS
cosign verify-blob \
--certificate SHA256SUMS.pem \
--signature SHA256SUMS.sig \
--certificate-identity 'https://github.com/NOFireAI/ravel/.github/workflows/publish-images.yml@refs/tags/v0.24.0' \
--certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
SHA256SUMSDebug symbols
The shipped binaries are stripped of debug info but keep their symbol table,
so a backtrace resolves function names with nothing extra installed. Line
numbers come from the matching symbols archive. Each binary records the
basename of its symbol file, so unpacking the archive next to the binary is
enough and no symbol-file step is needed:
tar -xzf ravel-debug-symbols-linux-amd64.tar.gz
gdb ./ravel-server-linux-amd64gdb looks for ravel-server.debug in the same directory (and in
.debug/), which is the name inside the archive. Do not rename the extracted
.debug files.