[RCA] Deliver a public-safe offline incident diagnosis workflow

未关闭
#14,222 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
20/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
java

调研方向

Start by reading the required sub-issues #14223–#14237 and their merge prerequisites; this tracking parent does not identify implementation files or test selectors. The issue describes the end-to-end workflow and completion fixtures, but leaves the individual implementation contracts to its children. Done means all required children merge and their focused acceptance checks pass, followed by a separate decision on closing this parent.

由索引模型根据 Issue 内容生成。

描述

database feature

Summary

Deliver a public-safe offline RCA workflow for BanyanDB: the reporter collects bounded diagnostic evidence locally, selects and sanitizes a useful subset, explicitly approves an archive and transfers it manually. The maintainer validates the bundle and diagnoses it using local source and a prevalidated sandbox, without live-database access.

Scope

Native-log storage is already implemented. This milestone covers incident collection and offline diagnosis, not another log-storage implementation.

Evidence sources: native logs, per-component versions and identity mappings, FODC metric windows, crash records/stacks, memory-pressure profiles, and existing query-execution traces.
Raw profiles are collected privately and excluded from default public release. Unsupported artifacts must be explicitly listed as omitted; the workflow must not promise all raw evidence can safely be shared.

Completion criteria

  • A slow-query fixture completes the reporter-to-maintainer path, with evidence provenance, component versions and explicit coverage gaps.
  • A memory-pressure/crash fixture collects relevant available metrics, stacks and profiles; private-only artifacts have explicit omission records.
  • Typed sanitizers remove canary secrets while retaining independently specified diagnostic fields; unknown content fails closed.
  • Human approval is bound to reviewed contents; archive tampering and unsafe extraction are rejected.
  • Offline diagnosis cites evidence and source, uses an enforced sandbox for reproduction, and reports insufficient evidence rather than inventing a cause.
  • All required children merge and their focused acceptance checks pass. Closing this parent is a separate decision.

Implementation boundaries

  • Bounded collection with truthful partial/unknown coverage is sufficient. Advanced window splitting/pagination is excluded.
  • No live collection UI, automatic upload/posting, automatic query replay, new profiling service or public raw-profile release.
  • Skills orchestrate tested CLI operations; prompts are not the enforcement boundary for privacy or sandboxing.
  • The analysis skill requires an existing tested sandbox and an agreed evaluation harness. Reporter/analysis skills need an evaluation approach appropriate to skill changes, not an unmodified Go-only automation profile.

Readiness

Tracking parent — never an automated implementation job. Children are planning contracts, not claims of completed RED/GREEN verification. Merge prerequisites and revalidate exact schemas, limits, callers and test selectors before queueing. Do not add all children to Backlog.

Required sub-issues

  • #14223 — Collect a bounded native-log incident window
  • #14224 — Record component versions and incident-local identity mapping (blocked by #14223)
  • #14225 — Collect bounded FODC metric windows (blocked by #14223)
  • #14226 — Collect FODC crash records and reporter-provided crash stacks (blocked by #14223)
  • #14227 — Download FODC memory-pressure profiles into the private workspace (blocked by #14223)
  • #14228 — Import request-based query traces as incident evidence (blocked by #14223)
  • #14229 — Create a reviewable evidence-selection plan (blocked by #14223)
  • #14230 — Sanitize native logs and component inventory (blocked by #14224, #14229)
  • #14231 — Sanitize metric evidence (blocked by #14225, #14230)
  • #14232 — Sanitize structured crash evidence (blocked by #14226, #14230)
  • #14233 — Sanitize query-execution traces (blocked by #14228, #14230)
  • #14234 — Seal a human-reviewed public incident archive (blocked by #14230)
  • #14235 — Add the reporter RCA collection and release skill (blocked by #14227, #14234, #14231, #14232, #14233)
  • #14236 — Validate and quarantine a bundle for offline maintainer use (blocked by #14234)
  • #14237 — Add evidence-grounded offline RCA analysis skill (blocked by #14236)

Dependency model

The dependency graph describes implementation order, not mandatory evidence collection order. #14223 contains both the first native-log adapter and the minimal shared bydbctl rca command/workspace/manifest support. Other collectors depend only on that shared support. They must run independently of native logging and must not query the log stream implicitly.

Likewise, #14230 delivers shared sanitizer/alias infrastructure alongside its first typed transform. Later sanitizers reuse that infrastructure, not native-log contents. No separate framework-only issue is introduced.

Issue Direct implementation prerequisites Contract consumed
#14223 None Initial shared RCA plumbing plus usable native-log collector
#14224 #14223 source-neutral private workspace/manifest and CLI registration
#14225 #14223 source-neutral collection command, artifact writer, limits and source-status/coverage contract
#14226 #14223 source-neutral collection command, private workspace and artifact/status contract
#14227 #14223 source-neutral collection command, private workspace and artifact/status contract
#14228 #14223 source-neutral private workspace, artifact registration and CLI integration
#14229 #14223 source-neutral artifact inventory/manifest consumed by selection
#14230 #14224, #14229 component inventory and explicit identity-mapping format; selection/omission contract; delivers the initial shared sanitizer and alias policy
#14231 #14225, #14230 metric artifact format; shared sanitizer dispatch, candidate output, alias policy and transformation-report contract
#14232 #14226, #14230 structured crash artifact format; shared sanitizer dispatch, candidate output, alias policy and transformation-report contract
#14233 #14228, #14230 supported query-trace artifact format; shared sanitizer dispatch, candidate output, alias policy and transformation-report contract
#14234 #14230 candidate-release and review-report contract, not native-log content
#14235 #14227, #14231, #14232, #14233, #14234 private profile collection command; metric sanitizer and its transitive collector dependencies; crash sanitizer and its transitive collector dependencies; query-trace sanitizer and its transitive collector dependencies; approval-bound archive sealing; transitive dependencies cover inventory, selection and base sanitization
#14236 #14234 public archive schema, hashes and member rules; not a requirement to run sealing locally
#14237 #14236 validated intake and coverage/version report
Independent runtime paths
  • Metrics-only: FODC metrics → selection → metric sanitization → approval/sealing → intake → analysis. No native-log collection is required.
  • Crash/profile path: collect the available FODC evidence independently; raw profiles remain private with explicit public omission records.
  • Supplied trace: local trace import → selection → trace sanitization; no live query or native-log access is required.
  • #14235 orchestrates only the sources relevant to an incident. Missing sources produce coverage gaps, not an unconditional failure of all collection.
  • #14236 validates an archive independently of the reporter workspace or skill. #14237 depends on that intake, not on #14235.
  • #14237 additionally requires an existing validated sandbox and an agreed evaluation harness before queueing.

The source collectors, inventory and selection can be developed independently after the shared #14223 contract merges. Sanitizer adapters can proceed independently after their own artifact format and the shared #14230 contract merge. Sealing and intake need not wait for every evidence adapter. Full umbrella completion still requires all planned children and the cross-issue scenarios.

主要语言
Java
星标
25k
派生
6.6k
平均合并
10 小时 45 分钟
30 天内合并 PR
49

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/skywalking 的其他 Issue

查看 apache/skywalking 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。