Skip to content

Releases

v0.11.2

Choose a tag to compare

@hanahmily hanahmily released this 08 Nov 05:05

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_EXHAUSTED for a limit+offset above a window derived from the per-query memory assignment (1792 entries on a host without a memory limit), so clients that send LIMIT 10000 such 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 exhausted although 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 body tag) no longer runs out of its allowance.
  • Without --allowed-bytes or 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 ListNode successful 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 CollectDataInfo shard 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, and BatchSize is capped at MaxUint16 so it cannot reopen the same wrap from the output side. The liaison's raw Top and raw GroupBy passes are chunked the same way.
  • Reject a --trace-vectorized-batch-size above 65,536 at startup instead of accepting it. The trace query path indexes a batch's active rows through a uint16 selection, 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 out error 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 IN or BELONGS TO filter 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 UnmarshalVarArray mutation 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 mismatch when 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/v5 to v5.4.0, go-jose/go-jose/v4 to v4.1.7 and golang.org/x/net to v0.62.0, and the canopy and MCP npm dependencies (fastify 5.12.8, undici 7.30.1, fast-uri 3.1.9 / 4.2.3, @modelcontextprotocol/sdk 1.32.2, zod 4.6.7, hono 4.13.16, @hono/node-server 2.1.6, body-parser 2.4.0, qs 6.17.1, ip-address 10.7.5, and the vite / vitest dev dependencies) to clear the Dependabot and OSV CVEs, regenerate dist/LICENSE, mcp/LICENSE and canopy/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-uri 4.2.1, fastify 5.12.1, js-yaml 4.3.2, hono 4.13.7, ip-address 10.7.3, proxy-addr 2.0.8 and brace-expansion 5.0.12. The committed canopy/LICENSE, mcp/LICENSE and 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 ci resolves 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.PprofTaskCreationRequest is undefined), so the e2e harness failed to install swctl and every e2e case failed at setup.
  • Protect the v0.11.x release branch in .asf.yaml and 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 ...
Read more

v0.11.1

Choose a tag to compare

@hanahmily hanahmily released this 22 Sep 12:44

0.11.1

Bug Fixes

  • Stamp RELEASE_VERSION into official release binaries so --version reports the release instead of -.
  • Stop declaring unbundled MCP npm dependencies in binary-package root LICENSE files (MCP Eyes output stays under mcp/).
  • Keep MCP and Canopy dependency license texts under mcp/licenses/ and canopy/licenses/ (checked in). Go binary packages that stage MCP also ship mcp/LICENSE, mcp/licenses/, and mcp/package-lock.json with mcp/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 LICENSE and drop the accidental Linux-only @rollup/rollup-linux-x64-gnu hard dependency so npm ci --omit=dev works on macOS ARM64.
  • Upgrade MCP production npm overrides (fast-uri 4.1.5, hono 4.13.8, qs 6.16.0) to clear npm audit findings.
  • 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 /metrics returning 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=MaxUint32 or OAP Integer.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 (with kind labels) 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.rules on 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_table ELF 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

Choose a tag to compare

@hanahmily hanahmily released this 28 Aug 02:41
3b83e18

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_name distinguishes links in a multi-plugin chain; segment, shard, and schema labels remain absent. The catalog works with pipeline_traces_evaluated for 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 via SelectSegments(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-sidx Merge + the shard's introducer loop) so it never touches the hot merge semaphore. Selection uses a per-part finalizeGen stamp (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 hard max_finalize_rounds (8). Coverage is best-effort — misses (e.g. a segment TTL-deleted before finalization) are accepted, not guaranteed. Enabled per group via enabled_events containing PIPELINE_EVENT_FINALIZE; the settling window is finalize_grace with a fixed 5m engine fallback. Finalize rounds emit the merge metrics under type="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 near limit/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-bytes and 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 at max_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-split pipeline_drop_set_entries histogram emitted whether or not a merge caps, pipeline_traces_retained_by_ceiling, pipeline_merges_ceiling_reached{lane}, and scan-level finalize_rounds/finalize_terminal worst-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. Use operation and group labels, add error_type and remote-endpoint labels, and propagate sender identity and group on the wire. [Breaking Change] Previous queue metric families, chunk-ordering metrics, and the topic label 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_tier on its banyandb_queue_sub_total_finished series. The lifecycle's parseGroup resolves the lifecycle's self identity by matching the lifecycle pod's hostname (POD_NAME via the K8s downward API, falling back to os.Hostname() — same precedence as nativeNodeContext at banyand/backup/lifecycle/service.go) against the data-node registry's GrpcAddress (host-portion match with loopback-alias and IP-literal normalization, via hostMatches at banyand/backup/lifecycle/steps.go) — Metadata.Name becomes remote_node, Labels["type"] becomes remote_tier — and calls SetSelfNode(senderNode, "lifecycle", senderTier) on the migration publisher. The previous --grpc-addr address-match (Pass 1) and --node-labels superset-match (Pass 2-3) fallbacks are replaced by this single host-based match because they failed on the production cluster where the data pod's GrpcAddress is a headless-service FQDN but the lifecycle's --grpc-addr is the loopback. Mirrors the liaison's existing SetSelfNode(node.NodeID, "liaison", liaisonTier) call in pkg/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 by remote_node, remote_role, remote_tier, and group; 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-labeled banyandb_lifecycle_cycles_total{remote_node!=""} (an empty remote_node series means the registry match failed for every group, the bug the old counter caught), plus the existing receiver-side count of empty remote_node on lifecycle banyandb_queue_sub_total_finished series. The wire-level cluster.v1.SendRequest sender-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 via BatchAggregation, scalar reduce (Agg without GroupBy), raw GroupBy (without Agg), implicit projection coverage for GroupBy/Agg fields, TopN/BottomN, order_by (via logical.ParseOrderBy, mirroring the row path's PushDownOrder rule), 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=false on 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=false or --trace-vectorized-enabled=false.
  • Add banyandb_vec_frame_encoded{engine} and banyandb_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 /metrics only 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...
Read more

v0.10.3

Choose a tag to compare

@ButterBright ButterBright released this 20 Jun 03:30

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_snapshot subtest 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 TestCollectWithPartialClosedSegments by raising SegmentIdleTimeout so wall-clock variance on slow CI does not mark still-open segments as idle.
  • Fix FODC lifecycle cache poisoning where transient InspectAll failures were cached for 10 minutes and masked liaison recovery; raise FODC agent and proxy timeouts from 10s to 40s.
  • Fix FODC /cluster/lifecycle dropping zero-valued group fields (e.g. replicas=0, close=false) under encoding/json + omitempty; switch to protojson so all fields are emitted (nil nested messages serialize as null).
  • Fix trace block_writer panic 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 InspectAll raced with idle-segment cleanup.
  • Add GroupLifecycleInfo.errors to surface per-group collection failures from FODC InspectAll instead of silently dropping the affected node entry.
  • Fix CollectDataInfo and CollectLiaisonInfo not handling CATALOG_PROPERTY groups.
  • 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.json for trace/measure/stream, manifest.json for sidx, plus traceID.filter and tag.type) now go through a new WriteAtomic (write-tmp + fsync + rename + fsync-dir) sequence; data writers (seqWriter.Close, localFileSystem.Write) now propagate fdatasync errors instead of silently dropping them. mustOpenFilePart / mustOpenPart in each engine cleans up safe post-rename .tmp leftovers 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 SERVING state with affected groups un-loaded because the property schema-registry retry loop swallowed the version-incompatibility panic. Compatible versions are listed in banyand/internal/storage/versions.yml.
  • Release bluge index writers on segment rotation so analysisWorker pools sized from GOMAXPROCS don't accumulate across rotations. Two layered defects kept the existing idle-segment reclaim path from running: segmentIdleTimeout defaulted to 0 (which disabled the 10-minute reclaim ticker), and incRef refreshed lastAccessed on every rotation tick so closeIdleSegments never observed an idle segment. Defaults to time.Hour, moves the lastAccessed bump to real read/write call sites, and rewrites closeIdleSegments to 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_id are 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 # TYPE line while parsing banyandb /metrics, the StreamMetrics proto 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 # TYPE lines. Capture the type with the Prometheus expfmt parser, store it in the flight recorder, thread it through a new Metric.type enum 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 # TYPE lines for one metric.
  • Trace storage metrics now expose the storage sub-scope, matching the stream_storage_* naming. The StorageMetricsFactory for trace switched from the root trace scope to trace.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 as banyandb_trace_storage_* instead of banyandb_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 single GetCurrentNode poll 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 to ROLE_UNSPECIFIED permanently, so most nodes never reported their real ROLE_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 --repeat to 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

Choose a tag to compare

@hanahmily hanahmily released this 06 May 02:20

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 topic instead of session_id as 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

Choose a tag to compare

@hanahmily hanahmily released this 06 Apr 02:59

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

Choose a tag to compare

@hanahmily hanahmily released this 31 Mar 00:38
e14f05d

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...
Read more

v0.9.0

Choose a tag to compare

@hanahmily hanahmily released this 27 Nov 08:13
0154f62

What's Changed

Read more

v0.8.0

Choose a tag to compare

@wu-sheng wu-sheng released this 02 Apr 14:25
baf47bf

What's Changed

New Contributors

Full Changelog: v0.7.1...v0.8.0

v0.7.1

Choose a tag to compare

@wu-sheng wu-sheng released this 13 Nov 00:29

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 series command 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

⌂ 换网址