Repository navigation
Releases
Releases · apache/skywalking-banyandb
v0.11.2
0.11.2
Features
- Improve the Canopy console's text readability: raise the faint and dim text contrast, lift every font size to at least 12px, use heavier sub-navigation weights, stop forcing antialiased font smoothing, and load IBM Plex Mono 600 and Sans 700. The query builder rail is wider by default (400px) to fit the larger text.
Bug Fixes
- Upgrade the Go toolchain to 1.26.10 and golang.org/x/net to v0.62.0 (with x/crypto, x/sys, x/text, x/term, x/mod and x/sync) for the crypto/x509 and net/http security fixes (GO-2026-6809, GO-2026-6610, GO-2026-6611, GO-2026-6612, GO-2026-6613, GO-2026-6617, GO-2026-6860, GO-2026-6866). Plugins must be rebuilt with Go 1.26.
- Stop rejecting queries by an estimated result window. Admission no longer returns
RESOURCE_EXHAUSTEDfor alimit+offsetabove a window derived from the per-query memory assignment (1792 entries on a host without a memory limit), so clients that sendLIMIT 10000such as OAP work without--allowed-bytes. The 100,000-entry absolute window, pool exhaustion, and execution-time charging are unchanged. Cap the sidx heap-merge preallocation sized by the request limit. - Fix stream queries failing with
query memory pool exhaustedalthough they return few rows (apache/skywalking#14165). The vectorized stream scan now decodes blocks on demand and refunds a block's query-budget charge when its cursor is released, the sorted merge refunds a batch once its last retained row is pruned, and the block scanner counts each block once against its quota. - Charge large tag and field values against the query allowance by their size instead of eight times their size, so a query that reads multi-MB values (for example OAP ai-agent session files stored as a
bodytag) no longer runs out of its allowance. - Without
--allowed-bytesor a container memory limit, size the query memory pool from host memory (75% of it, divided by 4, each query getting an eighth) instead of a fixed 64 MiB. The memory protector itself stays disabled. - Retry property schema registry initialization indefinitely, logging an error every 10 attempts.
- Re-fetch file/DNS discovery nodes that are parked in the retry queue while discovery has not Start()-ed yet, so unbounded PreRun schema-registry retries can recover once peers become reachable without restarting liaison.
- Keep DNS discovery
ListNodesuccessful when some SRV addresses refuse connections but at least one node was discovered, so non-meta nodes no longer deadlock in PreRun on their own not-yet-listening gRPC address. - Fix an un-interruptible sleep on shutdown during snapshot sync retry and add a jittered backoff for stream, measure, and trace.
- Report the real shard ID in
CollectDataInfoshard info for stream, measure, and trace instead of the live table's slice index, so a node that owns only higher-numbered shards is no longer attributed to shard 0 in cross-node shard-load analysis. - Reject a measure or stream whose tag name appears in more than one tag family, or twice within one family, when it is created or updated. The query layer resolves a bare tag name against a flat map keyed by name alone, so such a schema previously registered successfully and then resolved that name differently depending on which query path read it. Already-persisted schemas keep loading unchanged; only the registry's create and update paths enforce the rule.
- Fix a silently wrong result from the vectorized measure liaison's aggregation reduce when a single per-node partial exceeds 65,536 rows: past that boundary the consuming row index wrapped, folding early rows into a group a second time and never visiting the rest, with no error. It is reachable today on
Top-bearing queries, whose per-node limit is unbounded. The reduce now consumes an oversized partial in bounded chunks, andBatchSizeis capped atMaxUint16so it cannot reopen the same wrap from the output side. The liaison's rawTopand rawGroupBypasses are chunked the same way. - Reject a
--trace-vectorized-batch-sizeabove 65,536 at startup instead of accepting it. The trace query path indexes a batch's active rows through auint16selection, so a batch size above that bound silently wrapped -- reading early rows a second time and never reading the rest. The stream path already enforced this bound; measure now does too. A node configured above the bound will fail to start rather than return wrong results, and must lower the flag. - Fix FODC proxy OOM kills on
/metrics: stream the Prometheus text to the response, stop copying label maps, share one agent collection between concurrent scrapes, and install the same panic diagnostics as the agent. - Stop the scheduled backup/lifecycle/retention scheduler from logging a false
action timed outerror for an action that runs longer than 5 minutes but ultimately succeeds. Crossing the internal 5-minute soft deadline now logs a lower-severity "still running" message and keeps waiting for the action's real outcome instead of abandoning it mid-flight; the eventual result is logged and the scheduler only starts the next scheduled run once the current one truly finishes. The scheduler's shutdown graces now overlap across its tasks instead of running one after another. - Fix backup reporting success when an earlier catalog upload fails.
- Fix the S3 destination URL bucket parsing in the backup's
newFS, which sent the backup to the wrong bucket. - Return a trace's complete span set when its spans straddle a storage segment boundary (segments are per-day in local time, and each span lands in the segment matching its own timestamp) and the query's time range covers only one side of that boundary. After resolving the qualifying trace IDs from the segments the query range overlaps, fetching those traces' spans now also reopens any segment within one hour of the query range (
traceCompletionWindow), so the neighboring day's spans are no longer silently dropped. Applies to both ORDER BY and trace-ID trace queries; trace selection, ordering, and limit/offset are unaffected. - Apply a trace query's limit and offset after the residual span-ID filters, so a query whose limit was reached before the filters no longer drops older matching traces.
- Compare scalar literals by value rather than by pointer, so an
INorBELONGS TOfilter that compares two literals with the same value now matches. - Stop the stream block filter from skipping the rest of a series: the filter's verdict is per block, but the scan advanced a whole series on a skip, so every later block of that series was dropped.
- Clean up the merged and flushed parts that a shutdown interrupted. A merge whose introduction was refused left the merged part's directory and its file descriptors behind, and the flusher did not release the parts it could not introduce.
- Own the retained merge tail's decoded cells. The tail borrowed the decoder's buffer and the next block's decode overwrote it, so the retained rows could read a later row's tag value.
- Avoid an in-place
UnmarshalVarArraymutation of cached filters and decode buffers: the caller's backing array was written in place, so a cached filter's arrays were mutated by the next decode of the same filter, and a trace query or an sidx element that decoded into a shared buffer saw the previous value. - Guard the shared empty posting list against an in-place mutation, so a filter that merges into it cannot corrupt another filter's view of it.
- Wait for the liaison's entity cache before refusing a revisioned write. A schema barrier's watermark advances by each processed event's own revision, so an event handled out of revision order could carry it past a schema whose handlers had not yet filled the cache, and the write was refused with
STATUS_NOT_FOUND. - Derive the multi-group measure reduce layout from the query instead of inferring it from the partials that arrived: disjoint tags could leave the projection order, and a tag went missing when the only group defining it returned no rows. A multi-group aggregation also failed with
partial N schema mismatchwhen a projected tag existed only in some groups; every partial is now reshaped onto the target layout, null-filling the missing non-key tags, while a key tag, an aggregate column or a type change is still a mismatch.
Chores
- Bump
go-chi/chi/v5to v5.4.0,go-jose/go-jose/v4to v4.1.7 andgolang.org/x/netto v0.62.0, and the canopy and MCP npm dependencies (fastify5.12.8,undici7.30.1,fast-uri3.1.9 / 4.2.3,@modelcontextprotocol/sdk1.32.2,zod4.6.7,hono4.13.16,@hono/node-server2.1.6,body-parser2.4.0,qs6.17.1,ip-address10.7.5, and thevite/vitestdev dependencies) to clear the Dependabot and OSV CVEs, regeneratedist/LICENSE,mcp/LICENSEandcanopy/LICENSE, and move the E2E workflows to skywalking-infra-e2e 56ac8be. - Bump the canopy and MCP npm dependencies to clear the open Dependabot CVEs:
fast-uri4.2.1,fastify5.12.1,js-yaml4.3.2,hono4.13.7,ip-address10.7.3,proxy-addr2.0.8 andbrace-expansion5.0.12. The committedcanopy/LICENSE,mcp/LICENSEand the dependency license texts are regenerated to match. - Drop the platform-pinned native build bindings from the Canopy web dependencies and declare the rolldown bindings as optional per-platform dependencies, so
npm ciresolves a binding for the host platform instead of failing on a foreign one. Canopy now builds natively on macOS ARM64. - Bump the pinned skywalking-cli to a commit that builds against the current goapi. The previously pinned commit no longer compiles (
api.PprofTaskCreationRequestis undefined), so the e2e harness failed to install swctl and every e2e case failed at setup. - Protect the
v0.11.xrelease branch in.asf.yamland turn off Dependabot's security-update pull requests. - Log the Top-K dump at error level, so it is visible under the default log level.
Documentation
- Fix the BydbQL ...
v0.11.1
0.11.1
Bug Fixes
- Stamp
RELEASE_VERSIONinto official release binaries so--versionreports the release instead of-. - Stop declaring unbundled MCP npm dependencies in binary-package root
LICENSEfiles (MCP Eyes output stays undermcp/). - Keep MCP and Canopy dependency license texts under
mcp/licenses/andcanopy/licenses/(checked in). Go binary packages that stage MCP also shipmcp/LICENSE,mcp/licenses/, andmcp/package-lock.jsonwithmcp/dist. - Ship Canopy as an independent release archive (
skywalking-banyandb-*-canopy.tgz) with built SPA/BFF artifacts and Canopy Eyes licenses. - Include the full Apache-2.0 text in Canopy's root
LICENSEand drop the accidental Linux-only@rollup/rollup-linux-x64-gnuhard dependency sonpm ci --omit=devworks on macOS ARM64. - Upgrade MCP production npm overrides (
fast-uri4.1.5,hono4.13.8,qs6.16.0) to clearnpm auditfindings. - Fix standalone TopN write ordering.
- Fix stale Canopy query clauses after resource changes.
- Bound the vectorized stream Top-N merge by limit+offset, and bound the filtered index-order vectorized Top-N merge.
- Enforce the Canopy readonly role on the
/monitoring/*proxy the same way as/api/*. - Fix FODC proxy
/metricsreturning partial data or timing out when concurrent scrapes overlap. - Pre-set the logging level before flag parsing and honor the configured logging level in native observability metrics.
- Enforce trace query time ranges independently of the sort index, skipping row timestamp checks when the query fully covers a part.
- Retry property schema registry initialization indefinitely, logging an error every 10 attempts.
- Bound Property, Stream, and Trace query allocations with shared memory admission and capacity hints so oversized limit/offset windows cannot force huge result buffers.
- Preserve list-all / max-limit queries (
limit=MaxUint32or OAPInteger.MAX_VALUE) with incremental scan admission and result-count accounting, without over-charging Property source payloads against the liaison fallback pool. - Register the memory protector on the liaison role so query admission uses the cgroup-backed pool instead of the 64MiB fallback.
- Reject deeply nested ByDBQL WHERE parentheses to prevent stack overflow.
- Keep system native
memory_state(withkindlabels) from being overwritten by the liaison load-shedding gauge so self-observability dashboard queries succeed. - Reject group / stream / measure / trace (and related) resource names that are not a single path-safe identifier (
[a-zA-Z0-9_]([a-zA-Z0-9._-]*[a-zA-Z0-9])?), so names cannot escape catalog storage roots. - Bound protobuf
validate.ruleson schema and query identifiers (max length, allowlist pattern, repeated max_items, numeric ceilings) so untrusted inputs cannot escape storage roots or force unbounded allocations.
Chores
- Bump google.golang.org/grpc to v1.83.2 to clear GO-2026-6443, GO-2026-6441, and GO-2026-6348.
- Remove the accidentally committed
test_tableELF binary from the source tree. - Remove accidentally committed local design notes from the repository root.
- Update NOTICE copyright year to 2026.
- Tolerate CI shallow checkouts without git tags when resolving
VERSION_STRING.
Documentation
- Document the six release archives (src, banyand, bydbctl, fodc-agent, fodc-proxy, canopy) and their 18 signed files.
- Align the build-from-source prerequisites with
go.mod(Go 1.25.13) and the UI engines range (Node.js >= 24.6.0).
Full Changelog: v0.11.0...v0.11.1
v0.11.0
0.11.0
Features
- Breaking Change: Upgrade the API version to 0.11 for the schema revision fields and
SchemaBarrierService
operations added in this release. External clients and internal node communication must use API 0.11; mixed BanyanDB
0.10 and 0.11 clusters are not supported. - Add batch-write phase metrics for client-held-open time, post-seal admission time, and admission deadlines, plus per-part liaison-wqueue-to-data-node file-sync latency for measure, stream, and trace.
- Add bounded trace plugin overhead metrics: chain decision batches by result, per-plugin execution count and duration, batch trace-count distribution, and per-plugin fail-open bypasses by reason. The configured
plugin_namedistinguishes links in a multi-plugin chain; segment, shard, and schema labels remain absent. The catalog works withpipeline_traces_evaluatedfor per-plugin time/calls per trace, latency percentiles, timeout/circuit-open rates, and link-health monitoring. The Phase 10 merge benchmark mirrors chain batches and named-link timing into JSON and HTML and rejects missing, failed, bypassed, timed-out, or circuit-open execution records. - Add trace finalization sampling (
PIPELINE_EVENT_FINALIZE), a best-effort background backstop for the in-merge trace retention filter. A single node-wide, concurrency-1 scanner periodically sweeps cooled segments (segEnd < now − finalize_grace, reopening idle-closed segments viaSelectSegments(reopenClosed=true)) and force-merges each shard's un-finalized parts through the group's registered sampler chain, reusing the hot merge path (mergeParts+ per-sidxMerge+ the shard's introducer loop) so it never touches the hot merge semaphore. Selection uses a per-partfinalizeGenstamp (min-propagated on ordinary merges, written to disk before the part metadata so a crash cannot double-sample on replay); per-shard state (finalize.json) holds the generation, cooldown clock, round count, terminal flag, and an arrival-based unsampled-bytes counter incremented O(1) on the flush path. Re-rounds are bounded by an absolute FLOOR (8 MiB), a RATIO (0.10 of segment size), a cooldown (=finalize_grace), and a hardmax_finalize_rounds(8). Coverage is best-effort — misses (e.g. a segment TTL-deleted before finalization) are accepted, not guaranteed. Enabled per group viaenabled_eventscontainingPIPELINE_EVENT_FINALIZE; the settling window isfinalize_gracewith a fixed 5m engine fallback. Finalize rounds emit the merge metrics undertype="finalize"/lane="finalize". - Bound the trace merge drop-set so a large sampled merge cannot exhaust the heap. The merge-wide dropped-trace-ID collector was unbounded: because a shard's first finalize round selects every cooled part into one merge, an 18M-drop set reaches ~1.3 GiB live and ~2.6 GiB reserved heap (append doubling plus a single contiguous lookup index), inside a process also serving queries. The bound is applied to the sampling decision, not to the pruning predicate: once a merge's drop set is full every further proposed drop is retained instead of recorded, so the set stays complete with respect to the drops actually performed and each sidx still contains exactly its part's retained traces — no orphan entries, none missing. The fragment guard is skipped for a trace that will be retained, since it exists only to confirm drops. Every merge is charged the same ceiling, finalize included, resolved from the memory protector as
limit/(16*CPUs)so the aggregate across concurrent merges stays nearlimit/16; bytes-per-entry is derived from the observed trace-ID length rather than a constant, so a deployment with long service-prefixed IDs cannot overshoot the budget. A node whose protector is disabled (no--allowed-bytesand no valid cgroup limit) gets a flat fallback ceiling regardless of RAM — there the lever is the protector limit, not the machine's memory. The accepted cost is bounded deletion: a capped finalize round leaves traces undeleted and they are only revisited by the existing re-round path, which is capped atmax_finalize_rounds(8) per shard for its lifetime, so a very large shard can retain traces the sampler wanted dropped. Finalize I/O is unchanged, because the round count is unchanged. New group-level metrics make the loss visible without segment or shard cardinality:pipeline_drop_set_budget_bytes, a lane-splitpipeline_drop_set_entrieshistogram emitted whether or not a merge caps,pipeline_traces_retained_by_ceiling,pipeline_merges_ceiling_reached{lane}, and scan-levelfinalize_rounds/finalize_terminalworst-case gauges. Design:docs/design/trace-drop-set-bounding.md. - Redesign queue (
queue_pub/queue_sub) metrics around a uniform model with per-message and per-batch-stream catalogs. Useoperationandgrouplabels, adderror_typeand remote-endpoint labels, and propagate sender identity and group on the wire. [Breaking Change] Previous queue metric families, chunk-ordering metrics, and thetopiclabel are removed; update dashboards and alerts. - Stamp the lifecycle's tier-migration publisher's identity onto the wire so the receiving data node records a non-empty
remote_node/remote_role/remote_tieron itsbanyandb_queue_sub_total_finishedseries. The lifecycle'sparseGroupresolves the lifecycle's self identity by matching the lifecycle pod's hostname (POD_NAME via the K8s downward API, falling back toos.Hostname()— same precedence asnativeNodeContextatbanyand/backup/lifecycle/service.go) against the data-node registry'sGrpcAddress(host-portion match with loopback-alias and IP-literal normalization, viahostMatchesatbanyand/backup/lifecycle/steps.go) —Metadata.Namebecomesremote_node,Labels["type"]becomesremote_tier— and callsSetSelfNode(senderNode, "lifecycle", senderTier)on the migration publisher. The previous--grpc-addraddress-match (Pass 1) and--node-labelssuperset-match (Pass 2-3) fallbacks are replaced by this single host-based match because they failed on the production cluster where the data pod'sGrpcAddressis a headless-service FQDN but the lifecycle's--grpc-addris the loopback. Mirrors the liaison's existingSetSelfNode(node.NodeID, "liaison", liaisonTier)call inpkg/cmdsetup/liaison.go:170-171; no new CLI flags are introduced. - Add labeled lifecycle health metrics (
banyandb_lifecycle_cycles_total,banyandb_lifecycle_last_run_timestamp_seconds,banyandb_lifecycle_last_run_success) keyed byremote_node,remote_role,remote_tier, andgroup; stamp the last-run gauges atomically at cycle end and remove their previous label tuple. [Breaking Change] Update dashboards and alerts for the labeled series. - Remove
banyandb_lifecycle_self_identity_resolution_total. The regression-detection role moves to the now-labeledbanyandb_lifecycle_cycles_total{remote_node!=""}(an emptyremote_nodeseries means the registry match failed for every group, the bug the old counter caught), plus the existing receiver-side count of emptyremote_nodeon lifecyclebanyandb_queue_sub_total_finishedseries. The wire-levelcluster.v1.SendRequestsender-identity fields are unchanged. - Vectorized measure query path is now enabled by default. The columnar pipeline replaces per-row protobuf serialization in
NewMIterator, cutting allocations and ns/op for scan-heavy measure queries; gRPC wire format (*measurev1.InternalDataPoint) is byte-identical. Single-node coverage is complete: scan, GroupBy+Agg viaBatchAggregation, scalar reduce (AggwithoutGroupBy), rawGroupBy(withoutAgg), implicit projection coverage for GroupBy/Agg fields,TopN/BottomN,order_by(vialogical.ParseOrderBy, mirroring the row path'sPushDownOrderrule), queries with hidden criteria tags, and boundary-error parity (nil time range, unknown projection, empty result) all resolve through the vec dispatch with row-path-equivalent semantics (SUM/COUNT/MIN/MAX/MEAN type semantics, first-seen carry-forward of non-key projected tags, canonical validation errors). Validated by a 6h production soak (byte-identical parity, zero divergences) and the per-workload bench gates. Distributed Map-mode partial aggregation (multi-node GroupBy+Agg / TopN), multi-measure (multi-group) requests, and non-vectorized backends continue to flow through the row path pending the distributed vectorized query work. Rollback: pass--measure-vectorized-enabled=falseon the standalone or data-node command line and restart; the row path resumes immediately. - Enable vectorized stream and trace queries by default. Stream uses the columnar pipeline and native liaison-to-data frame for supported timestamp-, index-, criteria-, and multi-group queries; unsupported shapes and traced queries fall back to row or protobuf execution. Roll back with
--stream-vectorized-enabled=falseor--trace-vectorized-enabled=false. - Add
banyandb_vec_frame_encoded{engine}andbanyandb_vec_frame_decoded{engine}gauges (engine:measure/stream/trace), reporting how many query responses this process has put on the wire as a native columnar frame and how many it has decoded from one. Which wire format a node is actually speaking was otherwise invisible from outside the process, and the 0.11 upgrade-ordering rule depends on exactly that: a data node emits frames only when it is distributed AND its engine flag is on, so a standalone server reports zero encodes however the flag is set. Both series are cumulative and, being labelled, appear on/metricsonly after the first collection tick. A run whose encode count stays flat on the data nodes is falling back to protobuf. - [Breaking Change] Upgrade liaison nodes before data nodes when rolling out vectorized query paths. A 0.11 liaison accepts both columnar frames and protobuf, but an older liaison cannot decode frames emitted by an upgraded data node. Standalone deployments are u...
v0.10.3
0.10.3
Bug Fixes
- Persist segment end time in per-segment metadata so boundaries don't shift across restarts or config changes.
- Fix flaky on-disk integration tests caused by Ginkgo v2 random container shuffling closing gRPC connections prematurely.
- ui: fix query editor refresh/reset behavior and BydbQL keyword highlighting.
- Fix flaky
file_snapshotsubtest in measure/stream/trace by waiting until every introduced mem part has been flushed to disk, instead of only checking the latest snapshot creator. - Fix flaky
TestCollectWithPartialClosedSegmentsby raisingSegmentIdleTimeoutso wall-clock variance on slow CI does not mark still-open segments as idle. - Fix FODC lifecycle cache poisoning where transient
InspectAllfailures were cached for 10 minutes and masked liaison recovery; raise FODC agent and proxy timeouts from 10s to 40s. - Fix FODC
/cluster/lifecycledropping zero-valued group fields (e.g.replicas=0,close=false) underencoding/json+omitempty; switch toprotojsonso all fields are emitted (nil nested messages serialize asnull). - Fix trace
block_writerpanic on out-of-order timestamps within the same traceID, which dropped one trace-write batch per panic in multi-agent SkyWalking deployments. Spans of a single trace originate from independently-clocked services, and trace storage is organized by traceID rather than timestamp, so per-traceID timestamp monotonicity is not a writer invariant. - Fix nil-pointer panic on cold-tier data nodes when FODC
InspectAllraced with idle-segment cleanup. - Add
GroupLifecycleInfo.errorsto surface per-group collection failures from FODCInspectAllinstead of silently dropping the affected node entry. - Fix
CollectDataInfoandCollectLiaisonInfonot handlingCATALOG_PROPERTYgroups. - Close BanyanDB merge write-path durability gap that allowed torn parts to be created by a crash between data write and metadata commit. Metadata files (
metadata.jsonfor trace/measure/stream,manifest.jsonfor sidx, plustraceID.filterandtag.type) now go through a newWriteAtomic(write-tmp + fsync + rename + fsync-dir) sequence; data writers (seqWriter.Close,localFileSystem.Write) now propagate fdatasync errors instead of silently dropping them.mustOpenFilePart/mustOpenPartin each engine cleans up safe post-rename.tmpleftovers on open. (#13862, root cause for #13861) - Fix lifecycle migration where the receiving node could create segments shorter than the configured
SegmentInterval. - Fail fast on incompatible storage version at boot. Previously the server would start in a degraded
SERVINGstate with affected groups un-loaded because the property schema-registry retry loop swallowed the version-incompatibility panic. Compatible versions are listed inbanyand/internal/storage/versions.yml. - Release bluge index writers on segment rotation so
analysisWorkerpools sized fromGOMAXPROCSdon't accumulate across rotations. Two layered defects kept the existing idle-segment reclaim path from running:segmentIdleTimeoutdefaulted to0(which disabled the 10-minute reclaim ticker), andincRefrefreshedlastAccessedon every rotation tick socloseIdleSegmentsnever observed an idle segment. Defaults totime.Hour, moves thelastAccessedbump to real read/write call sites, and rewritescloseIdleSegmentsto take its own CAS-bumped snapshot so a concurrent reopen cannot have its only ref dropped under the reclaimer (apache/skywalking#13874). - Fix incorrect counts and missing trace fields in the lifecycle migration report.
- Fix trace query identity-tag projection: when
trace_id/span_idare explicitly projected, reconstruct them from span identity at response build time instead of requesting them as stored tags, and preserve tag order with null-filled per-span value alignment in the distributed trace result iterator. - Fix FODC proxy corrupting Prometheus metric types. The agent dropped the
# TYPEline while parsing banyandb/metrics, theStreamMetricsproto carried no type field, and the proxy guessed the type from a name-suffix heuristic — downgrading counters to gauge, mislabeling_count-suffixed counters as histograms, and splitting summaries into two conflicting# TYPElines. Capture the type with the Prometheusexpfmtparser, store it in the flight recorder, thread it through a newMetric.typeenum over gRPC, and emit the real type from the proxy; pre-upgrade (untyped) samples fold into the matching typed family so a mixed-version rollout never emits two conflicting# TYPElines for one metric. - Trace storage metrics now expose the
storagesub-scope, matching thestream_storage_*naming. TheStorageMetricsFactoryfor trace switched from the roottracescope totrace.storage, so per-segment inverted-index metrics (inverted_index_total_updates,inverted_index_total_doc_count,inverted_index_total_term_searchers_started) are now emitted asbanyandb_trace_storage_*instead ofbanyandb_trace_*, aligning the dashboard query names. Other trace metrics (trace_tst_*,trace_scheduler_*) are unchanged. - Fix FODC agent labeling metrics with
node_role="ROLE_UNSPECIFIED". The agent resolved the node role exactly once at startup via a singleGetCurrentNodepoll whose endpoint retries spanned only ~1s; when the sibling lifecycle/banyandb gRPC server was not yet listening (connect: cannot assign requested address) the role fell back toROLE_UNSPECIFIEDpermanently, so most nodes never reported their realROLE_DATA/ROLE_LIAISON. Retry the initial node-role resolution with exponential backoff until a non-unspecified role is obtained or a 25s budget elapses.
Chores
- Regenerate expired TLS test certificate with 100-year validity.
- Set Ginkgo
--repeatto 0 in the flaky-test workflow so the hourly run completes within the 50-minute timeout.
Full Changelog: v0.10.2...v0.10.3
v0.10.2
0.10.2
Bug Fixes
- Fix reuse of byte arrays in min/max implementation causing data corruption.
- Fix index-mode measure queries returning documents outside requested time range.
- Fix nil pointer panic in segment collectMetrics during shutdown.
- Fix property schema client connection instability after data node restart.
- Fix take snapshot error when no data in the segment.
- Fix(storage): disable rotation task on warm and cold lifecycle nodes.
- Fix(storage): prevent epoch segment creation from zero timestamps.
- Fix(sidx): use MinTimestamp/MaxTimestamp instead of SegmentID in streaming sync.
- Fix(handoff): prevent size limit bypass and sidx timestamp corruption in handoff replay.
- Fix(handoff): prevent enqueuing parts for online nodes via shared LocateAll.
- Fix wrong backup path of schema property.
- Fix OOM issue during migration when a group contains a large amount of data.
- Fix lifecycle migration failure when the target stage has
close: true. - Fix stale sync request blocking watch session channel.
- Fix nil pointer panic in disk monitor during early initialization.
- Fix FileSystemError not matching io/fs.ErrNotExist sentinel.
- Fix(topn): deduplicate entities in TopN aggregation query.
- Fix(stream): skip element-index visit when idx/ is absent.
- Fix(metadata): widen FODC inspection broadcast deadline and parallelize InspectAll.
- Fix(measure,stream,trace): eliminate flusher/introducer data race on shutdown.
- Fix: use
topicinstead ofsession_idas the Prometheus label. - Fix(fodc): heal reconnect deadlock and add error message when no agents for lifecycle request.
- Fix(MCP): add explicit validation for properties and tools, and harden the server.
Chores
- Upgrade Go and npm dependencies for CVE fixes.
- Bump ui and mcp npm dependencies for CVE fixes.
Full Changelog: v0.10.1...v0.10.2
v0.10.1
0.10.1
Bug Fixes
- Fix reuse of byte arrays in min/max implementation causing data corruption.
- Fix flaky trace query filtering due to non-deterministic sidx tag ordering.
- Fix index-mode measure queries returning documents outside requested time range.
- Fix nil pointer panic in segment collectMetrics during shutdown.
- Fix entity tag handling in trace filter preventing TagIdx index mismatch.
- Fix unstable tag filter matching order in sidx.
- Fix property schema client connection instability after data node restart.
- Fix duplicate TopN query execution in distributed measure queries.
- Fix bydbctl validation for malformed YAML input.
- Fix FODC agent test instability in Basic Metrics Buffering test.
Full Changelog: v0.10.0...v0.10.1
v0.10.0
What's Changed
- Remove Bloom filter for dictionary-encoded tags by @ButterBright in #849
- docs: update etcd backend quota configuration by @KitAndrew in #862
- feat: Implement BanyanDB MCP by @Fine0830 in #856
- Implement Additional Measure Dump Commands by @OmCheeLin in #864
- Fix the wrong detention setting of each measure/stream/trace by @mrproliu in #865
- Define new bulk write api by @ButterBright in #863
- Support lifecycle to trace data by @mrproliu in #852
- Add read write benchmark document for 0.9.0 release by @mrproliu in #866
- Add stage_names field by @hanahmily in #868
- feat(mcp): support query description without explicit groups and conditions by @Fine0830 in #870
- Enhance DictionaryFilter with map-based lookups for O(1) performance by @hanahmily in #872
- Fix NPE in tagFamilyFilters.Eq when filter is nil by @hanahmily in #874
- Implement Additional Property Dump Commands by @OmCheeLin in #871
- Remove check requiring tags in criteria to be present in projection by @hanahmily in #876
- build(deps): bump up dependencies and update licenses by @Fine0830 in #878
- Fix server got panic when create/update property with high dist usage. by @mrproliu in #879
- Support sort in the property query by @mrproliu in #861
- Add mix write and read scenario benchmark by @mrproliu in #880
- Implement spec-based bulk write for measure by @ButterBright in #869
- Update heading level for benchmark documentation by @wu-sheng in #883
- Update benchmark document file name to remove version by @mrproliu in #884
- Update the CPU and Memory usage in the Grafana Dashboard by @mrproliu in #885
- Remove the windows arch for binary and docker image by @mrproliu in #887
- internal TLS reload by @OmCheeLin in #882
- Fix incorrect key range update in sidx part metadata by @hanahmily in #891
- docs(fodc): document the Watchdog And Flight Recorder Development Design for FODC by @Fine0830 in #892
- Add First Occurrence Data Collection (FODC) doc by @wu-sheng in #895
- Support writing stream and trace data with specifications by @ButterBright in #888
- Measure Series Metadata in Liaison Sending Queue by @OmCheeLin in #890
- Add design documentation for KTM by @hanahmily in #894
- Trace、Stream Series Metadata in Liaison Sending Queue by @OmCheeLin in #896
- Enhance tag filtering functionality by adding ContainsAll method by @hanahmily in #898
- build(mcp): update npm command with the modern flag by @Fine0830 in #901
- Support deleting non-entity tags when updating the schema by @ButterBright in #873
- doc: Clarify shard allocation mechanism in Meta Nodes section by @OmCheeLin in #902
- feat: implement the Watchdog and Flight Recorder for FODC by @Fine0830 in #897
- Remove stage_names field by @hanahmily in #905
- docs: KTM documentation update(workload semantics and metric interpretation) by @Eternity1824 in #903
- Polish docs, and remove Java client doc. by @wu-sheng in #908
- Remove client repo from readme doc. by @wu-sheng in #909
- Enhance integration tests for spec-based writing by @ButterBright in #906
- test(fodc): fix Capacity Size and Heap Inused Size by @Fine0830 in #910
- Enhance vibe coding experience by @ButterBright in #907
- fix: resolve panic in measure block merger for overlapping timestamps by @hanahmily in #914
- docs: document the FODC Proxy Development Design by @Fine0830 in #911
- test(fodc): expand the tolerance for capacity size by @Fine0830 in #915
- build(fodc): refactor the file structure for fodc agent by @Fine0830 in #916
- Remove redundant filterTagProjection and filterFieldProjection operat… by @ButterBright in #917
- update the dump tool to support analyzing the parts with smeta files by @OmCheeLin in #900
- Upgrade Node.js support from 20.12 to 24.6.0 by @XL-Zhao-23 in #912
- Improve groupBy, orderBy and multi-group queries by @ButterBright in #904
- build(mcp): bump up qs to fix vulnerabilities by @Fine0830 in #923
- Support node registry by DNS by @mrproliu in #920
- feat(fodc): implement FODC Proxy by @Fine0830 in #918
- Fix unsupported empty string tag bug. by @hanahmily in #925
- build(fodc): add the banyandb prefix to IMG_NAME by @Fine0830 in #926
- Push down sum agg to data node by @OmCheeLin in #924
- Fix TopN processor not handling data points with specifications by @hanahmily in #931
- Add new gRPC and HTTP service for fetching all nodes has discovery in each liaison/data node by @mrproliu in #927
- Add group deletion api by @ButterBright in #913
- Update OAP version for e2e by @wankai123 in #933
- Support file base node discovery by @mrproliu in #928
- build(mcp): bump up modelcontextprotocol/sdk to fix vulnerability by @Fine0830 in #934
- Implement element ID-based deduplication in stream query results by @hanahmily in #935
- bugfix(fodc): fix registration or metrics stream startup fails to cause connection stop by @Fine0830 in #938
- bugfix(fodc): add info logs to the watchdog component by @Fine0830 in #939
- Push down count agg by @OmCheeLin in #932
- Activate the property repair mechanism by default by @mrproliu in #940
- Update the gRPC and HTTP port for lifecycle agent by @mrproliu in #941
- build(mcp): Pin the node version to fix npm build failure by @Fine0830 in #942
- Refactor TopN Aggregation Result Query Process by @peachisai in #937
- Fix data written to the wrong shard and related stream queries by @ButterBright in #944
- Fix start time sorting in loadSegments by @ButterBright in #946
- feat(fodc): support multiple ports for polling metrics in watchdog by @Fine0830 in #945
- bugfix(fodc): Correct flag name typo from 'container-name' to 'container-names' by @Fine0830 in #949
- Add snapshot time retention policy and fix lifecycle panic issue by @mrproliu in #950
- Update version to 0.10 and fix panic in sidx merge and flush operations. by @hanahmily in #952
- Fix property UT not stable by @mrproliu in #951
- refactor deduplicateAggregatedDataPoints by @OmCheeLin in #943
- Add Replication Tests to Index Mode Measu...
v0.9.0
What's Changed
- Bump vite from 6.2.4 to 6.2.5 in /ui by @dependabot[bot] in #641
- Add sharding_key for TopNAggregation source measure by @ButterBright in #636
- Bump vite from 6.2.5 to 6.2.6 in /ui by @dependabot[bot] in #644
- Fix a bug and update API by @hanahmily in #645
- Add sharding_key for measure in BanyanDB ui by @ButterBright in #647
- Restore e2e by using latest oap by @wu-sheng in #648
- Update versions.md by @wu-sheng in #649
- Change
node_selectortostagesfor groups in UI. by @Fine0830 in #650 - Fix the issue that the etcd watcher gets the historical node registration by @hanahmily in #651
- Update lifecycle.md by @wu-sheng in #653
- Enable Dynamic Reloading of TLS Certificates and Keys by @onkar717 in #642
- Add stability checks on recreated files by @hanahmily in #655
- feat: add TLS support between Liaison and Data nodes with integration… by @wesamabed in #646
- [WIP] add lifecycle query test by @hanahmily in #657
- Fix the Measure Fields by @Fine0830 in #658
- Fix(UI): add the
stagesfilter to yaml configuration by @Fine0830 in #659 - Add query test cases of lifecycle by @hanahmily in #660
- Feature 12893/add topn subcommand by @OmCheeLin in #656
- feat(metadata):expose auto-compaction by @raiki02 in #654
- Feature/13035 aws s3support by @Tsukilc in #652
- Bump vite from 6.2.6 to 6.3.4 in /ui by @dependabot[bot] in #661
- bug/fix Panic when creating _top_n_result #13183 by @OmCheeLin in #664
- Implement multiple groups query in one request by @hanahmily in #667
- Fix the unstopping syncing from etcd by @hanahmily in #668
- Replica: Replace Any with []byte Between Liaison and Data Nodes by @hanahmily in #669
- Fix the crash when collecting the metrics from a closed segment by @hanahmily in #671
- Replace defaultIOSize with protector memory limit by @Guo-Chenxu in #672
- Fix the data race by @hanahmily in #673
- Support configurable replica count on Group by @hanahmily in #675
- fix potential oom by @OmCheeLin in #674
- Move the TopN pre-calculation flow from the Data Node to the Liaison by @hanahmily in #677
- Add a wait and retry to write handlers to avoid the local metadata cache not being loaded by @hanahmily in #678
- Add e2e test to lifecycle management by @hanahmily in #679
- Implement versioning properties and replace physical deletion with the tombstone mechanism for the property database by @mrproliu in #681
- Add Load Balancer Feature to Liaiso by @hanahmily in #685
- Physics delete property when merging segment by @mrproliu in #684
- Implement primary block cache for measure by @ButterBright in #670
- Implement fadvise for large files to prevent page cache pollution by @Eternity1824 in #680
- Fix topN parsing panic when the criteria is set by @hanahmily in #689
- Implement dictionary encoding by @ButterBright in #682
- Support delete properties when query by @mrproliu in #686
- Introduce the
Tracedata model to store the trace/span data by @hanahmily in #691 - Implement skipping index for stream by @ButterBright in #665
- Support skipping index and tree index in BanyanDB ui by @ButterBright in #693
- Add documentation for skipping index by @ButterBright in #666
- Encode each column based on its data type by @OmCheeLin in #688
- Update TSDB version to v1.3.0 in documentation by @ButterBright in #696
- Remove useless console print by @mrproliu in #699
- Push down aggregation for topN query by @sollhui in #697
- Fix panic in Bloom filter decoding by @ButterBright in #701
- Support save repair state tree in property by @mrproliu in #692
- Support dictionary encoding for low cardinality columns by @ButterBright in #695
- Introduce write queue mechanism in liaison nodes by @hanahmily in #705
- Remove the indexed_only field in TagSpec by @ButterBright in #703
- Add the property background repair strategy documentation by @mrproliu in #702
- Remove the indexed_only field in BanyanDB ui by @ButterBright in #707
- Add Trace module metadata management by @hanahmily in #708
- Enhance debugging experience for e2e tests by @ButterBright in #706
- Feature/azure support by @Eternity1824 in #700
- fix(UI): avoid shardingKey.tagNames is undfined by @Fine0830 in #710
- Add chunked data sync to improve memory efficiency and performance during data transfer operations by @hanahmily in #711
- Introduce gossip propagation protocol by @mrproliu in #698
- Support background property repair by @mrproliu in #712
- Implement migration system for both measure and stream data with file-based approach by @hanahmily in #716
- Improves the handling of node-specific data in the top N processing. by @hanahmily in #718
- Enable Login with Username/Password in BanyanDB by @OmCheeLin in #704
- Push down min/max aggregation operation to data nodes by @sollhui in #694
- Updated migration visitor constructors to accept target stage interval by @hanahmily in #719
- Feature/Google Cloud Storage Support by @Eternity1824 in #717
- Introduce Trace System in background repair property feature by @mrproliu in #714
- fix: correct decode bug in tag.go and column.go by @hanahmily in #720
- Enhance flusher and introducer loops to support merging operations by @hanahmily in #721
- Update storage cache and protector implementations by @hanahmily in #723
- Trace sidx design by @hanahmily in #724
- Fix memory leak in measure package by @hanahmily in #726
- New storage engine for trace by @ButterBright in #713
- A patch to the block cache by @hanahmily in #727
- Secondary index for trace(1/6) by @hanahmily in #728
- Secondary index for trace: interface by @hanahmily in #729
- Secondary index for trace: interface mocking by @hanahmily in #730
- Secondary index for trace: memory management by @hanahmily in #731
- Secondary index for trace: snapshot by @hanahmily in #732
- implement dynamic reload of credential files by ...
v0.8.0
What's Changed
- Measure: Introduce "index_mode" by @hanahmily in #557
- Fix the index mode failure on multi-segments by @hanahmily in #558
- bug: fix the index mode still writes to the data files by @hanahmily in #559
- Fix the lack of version on the index mode measure by @hanahmily in #560
- Fix the bug when adding tags or fields to measuer or stream by @hanahmily in #561
- Index: Use numeric index type to support Int and Float by @hanahmily in #562
- Fix: polish Index Rule Page and Index Rule Binding Page by @Fine0830 in #563
- docs: Add
Setting up Environment Variablesin README by @Fine0830 in #564 - refactor: Add a common component to avoid hard code by @Fine0830 in #565
- Fix View Configuration and remove redundant fields on Property page by @Fine0830 in #566
- Add
indexModeto display on the measure page by @Fine0830 in #567 - feat: Add
NoSortField to IndexRule page by @Fine0830 in #568 - Fix top-n high cardinality by @hanahmily in #569
- Clean up codes & fix a bug and CVE by @hanahmily in #571
- Refactor Groups Tree by @Fine0830 in #572
- Fix: Highlight the current node in groups tree by @Fine0830 in #573
- build(UI): Add prettier to enforce a consistent style by parsing code by @Fine0830 in #574
- Fix groups tree for property data by @Fine0830 in #575
- Fix schema updating bugs by @hanahmily in #576
- Parse string and int array in the query result table by @Fine0830 in #577
- Index
measure_nameandtagsinentityto improve the query performance. by @hanahmily in #578 - Fix querying the index on a entity tag by @hanahmily in #579
- Bump up oap by @hanahmily in #580
- Add a cache to improve the performance of the series index write by @hanahmily in #581
- feat(UI): Implement
TopNAggregationdata query page by @Fine0830 in #582 - fix(UI): use
===instead of==to avoid type conversion by @Fine0830 in #583 - Remove redundant time range by @hanahmily in #584
- Update cespare/xxhash to v2 version by @Juneezee in #585
- Read cpu quota and limit from the cgroup file system to set gomaxprocs by @hanahmily in #586
- Change Property's storage layer by @hanahmily in #587
- Fix property metric collection failure by @hanahmily in #588
- Setup protection to 0.7 release branch by @wu-sheng in #589
- Add Max Disk Usage Percent by @hanahmily in #590
- Add api-version service by @hanahmily in #591
- Add versions document to make compatibility more clear. by @wu-sheng in #592
- Fix format by @wu-sheng in #593
- Another nit by @wu-sheng in #594
- Wait for the existing registration to be removed before registering by @hanahmily in #595
- feat(UI): Update BanyanDB UI to Integrate New Property Query API by @Fine0830 in #596
- Introduce the batch scan to improve the performance of the query and limit the memory usage by @hanahmily in #597
- Bump vite from 5.4.11 to 5.4.14 in /ui by @dependabot in #598
- Add the Memory Protector to limit the resource usage of the query operations by @hanahmily in #599
- Periodic sync to sync the metadata from the etcd by @hanahmily in #600
- Fix OOM on querying zipkin data through skywalking OAP by @hanahmily in #601
- Fix NPE on sorting by index with an empty result by @hanahmily in #602
- Add taking the snapshot of data files by @hanahmily in #603
- Use a combination to get in-use memory by @hanahmily in #604
- Add Backup CLI tool by @hanahmily in #605
- Restore the data by @hanahmily in #606
- Add backup and restore binaries into docker image by @hanahmily in #607
- Add concurent barrier for merging by @hanahmily in #609
- Improve the write performance and bump up go to 1.24 by @hanahmily in #610
- Fix the data race by @hanahmily in #611
- Update doc for property by @hanahmily in #614
- Fix menu version by @wu-sheng in #615
- Fix the Stream List by @Fine0830 in #616
- Add LifecycleStage API and nodes labels by @hanahmily in #617
- Add lifecycle management by @hanahmily in #618
- Fix ASF git error by @wu-sheng in #623
- Introduce the schema style to the property by @hanahmily in #621
- Remove duplicated license header by @ButterBright in #625
- [UI]Fix the group details by @Fine0830 in #626
- feat: the property page adapts new queries by @Fine0830 in #627
- feat: change the property page with schema queries by @Fine0830 in #628
- Add time range parameters to stream index filter by @ButterBright in #630
- Fix the oom issue when loading too many unnecessary parts into memory by @hanahmily in #631
- build(ui): bump up dependencies to fix vulnerabilities by @Fine0830 in #635
- Fix several issues of stream and bydbctl by @hanahmily in #637
- Fix the bug that the log doesn't get config by @hanahmily in #638
- Fix NPE by @hanahmily in #639
- feat(UI): Add the
stagestoGroupsby @Fine0830 in #640
New Contributors
Full Changelog: v0.7.1...v0.8.0
v0.7.1
What's Changed
- Fix metrics system typo by @sollhui in #550
- Improve the description of the memory in observability doc by @sollhui in #551
- Dev measure aggregate function by @StLeoX in #528
- [ospp] Implements MeasureAggregateFunctionService.Support API by @StLeoX in #545
- Fix the bug that TopN processing item leak by @hanahmily in #552
- Add the
bydbctl analyze seriescommand to analyze the series data. by @hanahmily in #553 - Several Changes about Index and Document by @hanahmily in #554
- Improve the inverted index by @hanahmily in #555
Full Changelog: v0.7.0...v0.7.1