[RCA] Deliver a public-safe offline incident diagnosis workflow
维护者通常 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 内容生成。
描述
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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/skywalking 的其他 Issue
-
[Bug] [BanyanDB] timestamp.ParseDuration silently drops everything after "d"可能已有人在做 @soujasK 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 83/100
apache/skywalking#14287 ·
维护者通常 1 天内回复
-
[BanyanDB] Let trace queries exclude the raw span from results可能已有人在做 @hanahmily 今天认领。 未关闭enhancement
apache/skywalking#14288 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[BanyanDB] Data race and nil-pointer panic: measure write during standalone shutdown after segment close可能已有人在做 @hanahmily 今天认领。 未关闭bug
apache/skywalking#14285 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
apache/skywalking#14283 · 1 条评论 ·
维护者通常 1 天内回复
-
[BanyanDB] Store trace binary tags only in core storage, not in secondary index (sidx)可能已有人在做 @hanahmily 于 1 天前认领。 未关闭enhancement
apache/skywalking#14282 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 apache/skywalking 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
testng-team/testng#3672 ·
维护者通常 1 天内回复
-
triage
难度 2/5 1-3 小时 新手友好度 78/100
eclipse-edc/IdentityHub#1296 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
cloudfoundry/uaa#4194 ·
维护者通常 1 天内回复
-
area: ui priority: medium
难度 2/5 1-3 小时 新手友好度 83/100
tetsuji16/microProject#1721 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复