Expand description
@schema reassembly for dora topic: rebuilding the self-describing Arrow
IPC stream of each output sample a node publishes on zenoh, with the cache
that lets a late watcher decode schema-once batches.
The daemon’s debug subscriber uses this to feed dora topic. It lives here
so that a CLI subscribing to zenoh directly can rebuild the same frames
(dora-rs/dora#4025).
Constants§
- MAX_
DEBUG_ SCHEMAS - Retention bound for
DebugSchemaCache, matching the node receive path’sInputDecoder(seeMAX_RETAINED_SCHEMASin dora-node-api’sipc_encode).
Functions§
- prepare_
debug_ topic_ frame - Turn one sample observed by a debug subscriber into the
(metadata, data)of adora topicframe, orNoneto drop it. - rebuild_
debug_ topic_ stream - Rebuild a self-describing Arrow IPC stream for a
dora topicdebug frame. - retain_
debug_ schema - Remember
schemaforhashin the debug cache (most-recent last), evicting the oldest entry beyondMAX_DEBUG_SCHEMAS. An already-retained hash is moved to the back without re-copying its bytes. - retain_
published_ schema - Remember a schema block received on an output’s
@schemakey. It is keyed by its FNV-1a hash, the hash the producer tags its schema-once batches with (seecrate::schema_once::schema_block_and_hash).
Type Aliases§
- Debug
Schema Cache - Cached
@schemabytes (keyed by their FNV-1a hash, most-recent last) for one debug-watched output, shared between the@schemasubscriber callback and the data task. Retains several schemas — mirroring the node receive path’sInputDecoderretention — so an output that interleaves schemas (e.g. schema-once batches of schema A between large full streams of schema B) doesn’t have its schema-once schema clobbered, and a stale@schemahistory-query result arriving after an in-band prime can’t evict the fresher schema (both stay retained).