iamoceans opened a new pull request, #19:
URL: https://github.com/apache/doris-skills/pull/19

   ### What
   
   Refresh the factual reference material inside `skills/doris-debug` against
   `apache/doris` master `6261b18` (2026-11-25): config defaults and 
renamed/removed
   BE+FE knobs, moved source paths, a broken internal reference, and the
   `./scripts/doris-debug` helper that this repository does not ship.
   
   No behavior, routing, workflow, or policy changes: every edit either 
corrects a factual
   claim, replaces a command that cannot work with an equivalent command that 
can, or marks
   an old name/scope explicitly.
   
   ### Why
   
   The cluster-side skills are consumed by the `apache/doris` submodule
   (`.gitmodules`: `path = doris-skills`, `branch = main`), so stale facts 
propagate
   downstream. Two failure modes were reproduced while reviewing this 
repository against
   Doris master:
   
   1. **Stale knobs.** `05-config-quick-ref.md` listed 18 parameters whose 
master state
      differs: wrong defaults (`mem_limit` 80% vs 90%, 
`storage_page_cache_limit`
      unlimited vs 20%), renamed knobs (`max_cumulative_compaction_threads` ->
      `max_cumu_compaction_threads`, `enable_je_purge` ->
      `enable_je_purge_dirty_pages`, inverted `memory_gc_enable` ->
      `disable_memory_gc`), and knobs that no longer exist anywhere on master
      (`compaction_tablet_size_threshold`, `max_segment_cache_size`,
      `chunk_reserved_bytes_limit`, `process_memory_recovery_enable`,
      `enable_redirect_strict_check`, `s3_max_connections`,
      `s3_request_timeout_ms`, `file_cache_type`, `file_cache_query_limit`,
      `iceberg_manifest_cache_refresh_interval_s`, `bdbje_cleaner_threads`,
      `max_cumulative_compaction_threads`).
   2. **A helper that does not exist.** `./scripts/doris-debug` was referenced 
24 times
      in 12 files (and its subcommands 13 more times), but this repository has 
no
      `scripts/` directory under `skills/doris-debug/`. Those instructions 
cannot run.
   
   The source map had also drifted: 3 paths had moved, and two more anchors 
named classes
   that no longer exist.
   
   ### What changed
   
   **1. `shared/references/05-config-quick-ref.md` — new `Status on master` 
column (every table).**
   Values are `current` / `changed` / `renamed` / `removed` / `legacy` /
   `table property` / `unverified`, each with the master evidence (source file 
and line)
   or the replacement knob. Old names are kept in place with their status 
instead of being
   deleted, so 3.x/4.x operators can still find them; the header states that a 
deployed
   branch may still accept the old name and points at 
`be/src/common/config.cpp` for the
   branch in use.
   
   **2. `shared/references/02-source-map.md` — paths and baseline re-verified.**
   - `be/src/io/cache/whole_file_cache.cpp` -> 
`be/src/io/cache/block_file_cache.cpp`
   - `be/src/io/fs/s3/S3FileSystem.cpp` -> 
`be/src/io/fs/obj_storage_file_system.cpp`
     (clients under `be/src/io/object_storage/`)
   - `fe/.../master/TabletHealth.java` -> 
`fe/fe-core/src/main/java/org/apache/doris/common/proc/TabletHealthProcDir.java`
   - `fe/.../master/Env.java` -> 
`fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java`
   - `fe/.../master/HeartbeatHandler.java` -> 
`fe/fe-core/src/main/java/org/apache/doris/system/HeartbeatMgr.java`
   - baseline line now reads 3.x-5.x / master `6261b18` / 2026-11-25, with the 
`git grep` check to use.
   Other FE entries were expanded to full current paths.
   
   **3. `shared/references/01-common-commands.md` — rewritten as the executable 
replacement.**
   It now documents:
   - the SQL that was missing (top-N slow queries from 
`__internal_schema.audit_log`, with `query_time`/`query_id`/`state` columns);
   - the BE HTTP endpoints that actually exist (`/metrics`, 
`/api/compaction_score`, `/api/compaction/show`, `/api/file_cache`, 
`/api/show_config`, `/api/be_version_info`, `/tablets_json`, 
`/api/reset_rpc_channel/{endpoints}`), all registered in 
`be/src/service/http_service.cpp`;
   - a pack-to-log-pattern table built from real message strings in the source
     (`exceed limit`, `memory tracker limit exceeded`, `Too many group commit 
async WALs`,
     `failed to send brpc when exchange`);
   - how to find the WAL directories (`group_commit_wal_path` or default 
`<storage_root>/wal`, logged as `wal_dir:`) and measure them.
   
   **4. Phantom helper replaced in all 12 files.**
   `./scripts/doris-debug be-metrics --be ... --grep X` -> `curl -s 
"http://$BE:8040/metrics"; | grep -E "X"`;
   `./scripts/doris-debug log-grep DIR --query-id Q [--pack P]` ->
   `grep -rh "$Q" DIR` (or the pack pattern from the table above);
   `./scripts/doris-debug wal-du <root>` -> `grep -h "wal_dir:" 
be/log/be.INFO*` + `du -sh` on those dirs;
   `./scripts/doris-debug audit-topk fe/log/fe.audit.log -k N --min-ms M` -> 
the `audit_log` SQL above.
   No script is invented, and no new dependency is added.
   
   **5. Broken internal reference.** `skills/doris-debug/SKILL.md` pointed at
   `shared/references/03-case-index.md` three times; the file is
   `shared/references/03-cir-case-index.md`.
   
   **6. Follow-on stale anchors in the same skill** (each verified against 
master):
   `max_cumulative_compaction_threads` -> `max_cumu_compaction_threads`;
   `compaction_tablet_size_threshold` dropped (no replacement knob);
   `file_cache_type` / `sub_file_cache` replaced by the block file cache and 
its `file_cache_each_block_size`;
   `s3_max_connections` / `s3_request_timeout_ms` replaced by storage-vault 
properties
   (`s3.connection.maximum`, `s3.connection.request.timeout`, 
`s3.connection.timeout`);
   `ProcessMemoryReachedCancel` (no longer a symbol) reworded to the current 
memory-GC behavior;
   `file_cache_query_limit` -> `enable_file_cache_query_limit`;
   moved anchors `be/src/olap/cumulative_compaction_policy.cpp`, 
`be/src/olap/tablet_manager.cpp`,
   `be/src/pipeline/task_scheduler.cpp`, `be/src/io/fs/hdfs/HdfsFileSystem.cpp`,
   `be/src/vec/exec/format/parquet/vparquet_reader.cpp`, Hive/HMS classes and
   `MaterializedViewRewriter.java` updated to their current modules.
   A `be-metrics` command that had been pasted inside a `sql` fence
   (`materialized-view/SKILL.md`) is now in a `bash` fence.
   
   ### Evidence method
   
   Every changed fact was checked against `apache/doris` master `6261b18` 
(2026-11-25)
   in a local checkout, not against documentation:
   
   - BE knobs: `DEFINE_<type>(name, "default")` parsed from 
`be/src/common/config.cpp` and
     `be/src/cloud/config.cpp` (1,357 parsed definitions).
   - FE knobs: `fe/fe-common/src/main/java/org/apache/doris/common/Config.java` 
(`public static ... name = value;`).
   - Session variables: 
`fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java`
     (camelCase fields, e.g. `nereidsTimeoutSecond = 30`).
   - "removed" conclusions were only accepted after a whole-tree
     `git grep -rn <name> -- . ` (excluding `doris-skills/`) returned zero hits;
     this is why e.g. `enable_nondeterministic_function` is *not* reported as 
removed
     (it exists at `fe/.../util/PropertyAnalyzer.java`).
   - BE HTTP routes: `be/src/service/http_service.cpp`; auth level from the
     `MetricsAction` registration (`TPrivilegeType::NONE` for `/metrics`).
   - Log strings: taken from the emitting source files (see table in
     `01-common-commands.md`).
   - WAL layout: `be/src/load/group_commit/wal/wal_manager.cpp` 
(`_init_wal_dirs_conf`,
     default `<storage_root>/wal`; startup logs `wal_dir:`).
   
   ### Verification
   
   - `python skills/doris-pr-description/scripts/check_pr.py --self-test` ->
     `Self-test: 11 examples in 10 files, 0 problems` (exit 0).
   - Whole-tree greps: `0` remaining occurrences of `scripts/doris-debug`,
     `log-grep`, `be-metrics`, `wal-du`, `audit-topk`.
   - Every old name that still appears in the tree is inside an explicit
     `removed` / `renamed` / `no longer exists` / `on that release` annotation
     (verified by grepping each name and reviewing every hit).
   - Markdown structure: fence parity and 5-column table integrity checked on 
all 25 files.
   - Internal links: the files touched by this PR resolve; the repository has 4 
pre-existing
     broken relative links in `skills/doris-architecture-advisor/SKILL.md`
     (`doris-best-practices/references/*.md` should be 
`../doris-best-practices/references/*.md`) —
     left out of this PR to keep it focused, happy to send a follow-up.
   - English-only: no CJK characters added (the only Chinese in the repository 
stays where it
     is by design: `verify/behavior/*.sh` prompts and the bilingual
     `doris-repo-review` documents).
   - **Not run:** L1/L2/L3 (`verify/run.sh`, `verify/cli/run.sh`, 
`verify/behavior/*.sh`)
     need a live Doris cluster, `doriscli`, and a nested `claude -p`; this 
change is
     text-only in `skills/doris-debug`, which those layers do not execute.
   
   ### Risks and compatibility
   
   - Old names are kept with a status instead of being deleted, so operators on 
3.x/4.x can
     still find them; the header says explicitly that a deployed branch may 
differ and how to
     check it.
   - The `Status` column asserts master behavior only — it does not claim exact 
version
     boundaries. Where a default could not be located on master 
(`query_timeout`,
     `insert_timeout`, the two `group_commit_*` table properties) the row says
     `unverified` rather than guessing.
   - `committed request that was intentionally not made`: the optional 
clean-ups in
     `doris-pr-description/references/stop-and-ask.md` (`custom_env.sh`, which 
is
     legitimate — `env.sh` creates and sources it at `env.sh:97-106`) and the 
generic
     `AGENTS.md` references in `develop-with-evidence` (those refer to the 
target
     `apache/doris` checkout and are correct as written). Neither is a factual 
error, so
     neither belongs in this PR.
   
   ### Scope guard
   
   Untouched on purpose: `doris-best-practices` rule counts (conflicts with 
open PR #13),
   `doris-repo-review` runtime policy, `CLI-CONTRACT.md` fields, `README.md`,
   the `apache/doris` submodule pointer, and any Chinese content.
   
   ---
   
   ## File list (25 files, +281 / -172)
   
   | File | Lines | Change |
   |---|---|---|
   | `skills/doris-debug/SKILL.md` | +6 / -2 | 3 broken `03-case-index.md` 
references -> `03-cir-case-index.md` |
   | `skills/doris-debug/shared/references/01-common-commands.md` | +94 / -4 | 
Rewritten: SQL, BE endpoints, log-pattern table, WAL recipe |
   | `skills/doris-debug/shared/references/02-source-map.md` | +25 / -14 | 5 
paths corrected, baseline re-verified |
   | `skills/doris-debug/shared/references/03-cir-case-index.md` | +16 / -16 | 
Phantom commands -> real ones; 4 config names annotated |
   | `skills/doris-debug/shared/references/04-metrics-guide.md` | +9 / -4 | 5 
phantom commands -> `curl /metrics` and greps |
   | `skills/doris-debug/shared/references/05-config-quick-ref.md` | +73 / -66 
| `Status on master` column on all 8 tables (18 rows corrected) |
   | `skills/doris-debug/cloud/SKILL.md` | +18 / -9 | Phantom commands, S3 
knobs, cache type, source anchors |
   | `skills/doris-debug/compaction/SKILL.md` | +8 / -4 | Phantom commands, 
renamed thread knob, removed threshold, moved path |
   | `skills/doris-debug/data-lake/SKILL.md` | +11 / -5 | Phantom command, 
Hive/HMS/HDFS/Parquet anchors |
   | `skills/doris-debug/deployment/SKILL.md` | +1 / -1 | `Env.java` path |
   | `skills/doris-debug/import/SKILL.md` | +5 / -3 | WAL measurement, 
`group_commit` grep |
   | `skills/doris-debug/materialized-view/SKILL.md` | +5 / -3 | Command moved 
out of `sql` fence; rewriter anchor |
   | `skills/doris-debug/node/SKILL.md` | +7 / -5 | Phantom command, 
renamed/removed memory knobs, heartbeat anchor |
   | `skills/doris-debug/query/SKILL.md` | +6 / -2 | Log greps, audit SQL 
pointer |
   | `skills/doris-debug/resource-isolation/SKILL.md` | +4 / -2 | Phantom 
command, scheduler path |
   | `skills/doris-debug/tablet/SKILL.md` | +7 / -5 | Phantom commands, removed 
threshold, health/manager anchors |
   | `skills/doris-debug/shared/guides/cascade-import-wal-versions.md` | +1 / 
-1 | WAL tool line |
   | `skills/doris-debug/*/references/case-*.md` (8 files) | +9 / -9 | Phantom 
commands and stale names inside case files |
   
   ## Evidence summary (18 corrected config rows)
   
   Format: parameter — previous guidance in the skill — master state — evidence.
   
   | Parameter | Was | Master | Evidence |
   |---|---|---|---|
   | `mem_limit` | 80% | 90% | `be/src/common/config.cpp:139` |
   | `storage_page_cache_limit` | 0 (unlimited) | 20% | 
`be/src/common/config.cpp:430` |
   | `brpc_heavy_work_pool_threads` | 256 | -1 (auto) | 
`be/src/common/config.cpp:684` |
   | `max_cumulative_compaction_threads` | -1 | renamed 
`max_cumu_compaction_threads` = -1 | `be/src/common/config.cpp:498` |
   | `enable_je_purge` | false | renamed `enable_je_purge_dirty_pages` = true | 
`be/src/common/config.cpp:761` |
   | `memory_gc_enable` | true | removed; inverse `disable_memory_gc` = false | 
`be/src/common/config.cpp:187` |
   | `max_segment_cache_size` | 0 | removed; `segment_cache_capacity` / 
`segment_cache_memory_percentage` / `disable_segment_cache` | 
`config.cpp:420,1565,1568` |
   | `compaction_tablet_size_threshold` | 100GB / 107374182400 | removed, no 
replacement | whole-tree grep: 0 |
   | `chunk_reserved_bytes_limit` | 2GB | removed | whole-tree grep: 0 |
   | `process_memory_recovery_enable` | false | removed | whole-tree grep: 0 |
   | `enable_redirect_strict_check` | true | removed | whole-tree grep: 0 |
   | `s3_max_connections` | 256 | removed; `min/max_s3_file_system_thread_num` 
= 16/64 | `config.cpp:1140-1141` |
   | `s3_request_timeout_ms` | 30000 | removed; `s3.connection.request.timeout` 
= 3000 ms (vault property) | `S3FileSystemProperties.java:64,70` |
   | `file_cache_type` | whole_file_cache | removed; block cache + 
`file_cache_each_block_size` = 1 MB | `config.cpp:1280` |
   | `file_cache_query_limit` | 0 | replaced by `enable_file_cache_query_limit` 
= false | `config.cpp:1283` |
   | `iceberg_manifest_cache_refresh_interval_s` | 3600 | removed | whole-tree 
grep: 0 |
   | `bdbje_cleaner_threads` | 1 | removed | whole-tree grep: 0 |
   | `enable_plan_cache`, `parallel_exchange_instance_num`, 
`parallel_fragment_exec_instance_num` | 3 legacy knobs | removed / legacy (name 
only) | source search + `SessionVariable.java` |
   
   ## Mapping table A — the 24 `./scripts/doris-debug` occurrences (12 files)
   
   Every occurrence was replaced with a command that exists in the repository's 
own reference
   material; no helper script was invented.
   
   | # | File:line(s) | Original | Replacement | Basis |
   |---|---|---|---|---|
   | 1 | `cloud/SKILL.md:46,49` | `be-metrics --grep "file_cache|local_cache"`; 
`log-grep --query-id` | `curl -s "http://$BE:8040/metrics"; | grep -E 
"file_cache|local_cache"`; `grep -rh "$QID" be/log/be.INFO*` | `/metrics` 
route; `01-common-commands.md` |
   | 2 | `compaction/SKILL.md:35,36,42` | `log-grep --pack versions`; 
`be-metrics --grep compaction` | `grep -hE "exceed limit|version count:" 
be/log/be.INFO*`; `curl .../metrics | grep -E "compaction"` | 
`rowset_builder.cpp:182-187`; `/metrics` |
   | 3 | `data-lake/SKILL.md:43` | `log-grep --query-id` | `grep -rh "$QID" 
be/log/be.INFO*` | same as #1 |
   | 4 | `import/SKILL.md:38,39` | `wal-du`; `log-grep --pack group_commit` | 
`grep -h "wal_dir:" ...` + `du -sh`; `grep -hE "Too many group commit async 
WALs|group commit"` | `wal_manager.cpp:94-98,118`; `group_commit_mgr.cpp:339` |
   | 5 | `materialized-view/SKILL.md:70` | `be-metrics` pasted inside a `sql` 
fence | `bash` fence with `curl .../metrics | grep -E "compaction"` | fence bug 
+ `/metrics` |
   | 6 | `node/SKILL.md:26` | `log-grep --pack memory` | `grep -hE "memory 
tracker limit exceeded" be/log/be.WARNING*` | `mem_tracker_limiter.cpp:368` |
   | 7 | `query/SKILL.md:30,31,32` | 2x `log-grep`; `audit-topk 
fe/log/fe.audit.log -k 20 --min-ms 5000` | `grep -h "$QID" fe/log/fe.log`; 
`grep -rh "$QID" be/log/be.INFO*`; `audit_log` SQL | `audit_log` columns from 
`InternalSchemaInitializer.java:347` |
   | 8 | `resource-isolation/SKILL.md:41` | `be-metrics --grep workload_group` 
| `curl .../metrics | grep -E "workload_group"` | `/metrics` |
   | 9 | `tablet/SKILL.md:45,46` | `be-metrics`; `log-grep --pack versions` | 
`curl .../metrics | grep -E "tablet|version|clone"`; `grep -hE "exceed 
limit|version count:"` | `/metrics`; `rowset_builder.cpp` |
   | 10 | `shared/references/01-common-commands.md:18,19` | The helper's own 
"CLI helpers from this repo" block | Removed; replaced by the canonical command 
sections in the same file | the repository ships no such helper |
   | 11 | `shared/references/04-metrics-guide.md:46,66,86,87,101` | 3x 
`be-metrics`, `wal-du`, `log-grep` | `curl .../metrics | grep -E ...`; WAL 
discovery + `du -sh`; `group_commit` grep | routes and strings above |
   | 12 | `shared/guides/cascade-import-wal-versions.md:13` | `Tool: 
./scripts/doris-debug wal-du <storage_root>` | `grep -h "wal_dir:" ...` then 
`du -sh <wal_dir>/*` | `wal_manager.cpp` |
   
   ## Mapping table B — the 13 bare subcommand mentions
   
   | # | File:line | Original | Replacement |
   |---|---|---|---|
   | 1 | `compaction/references/case-001`:14 | `log-grep --pack versions` | 
versions grep pattern |
   | 2 | `import/references/case-001`:10 | `doris-debug wal-du` | `wal_dir:` 
grep + `du -sh` |
   | 3 | `node/references/case-001`:21 | `log-grep be/log --pack memory` | 
memory grep pattern |
   | 4 | `node/references/case-002`:82 | `be-metrics --grep file_cache` | `curl 
/metrics | grep -E "file_cache"` |
   | 5 | `node/references/case-003`:111 | `be-metrics --grep cache` | `curl 
/metrics | grep -E "cache"` |
   | 6 | `query/references/case-001`:10 | `log-grep --pack exchange` | exchange 
grep + `reset_rpc_channel/all` |
   | 7 | `03-cir-case-index.md`:184 | `be-metrics --grep compaction` | `curl 
/metrics | grep -E "compaction"` |
   | 8 | `03-cir-case-index.md`:214 | `be-metrics --grep file_cache` | `curl 
/metrics | grep -E "file_cache"` |
   | 9 | `03-cir-case-index.md`:361 | `be-metrics --grep spill` | `curl 
/metrics | grep -E "spill"` |
   | 10 | `03-cir-case-index.md`:370 | `be-metrics --grep memory` | `curl 
/metrics | grep -E "memory"` |
   | 11 | `03-cir-case-index.md`:408 | `be-metrics --grep file_cache` | `curl 
/metrics | grep -E "file_cache"` |
   | 12 | `03-cir-case-index.md`:417 | `be-metrics --grep fragment` / 
file_cache | two `grep -E` calls on `/metrics` |
   | 13 | `03-cir-case-index.md`:441 | `be-metrics --grep brpc` | `curl 
/metrics | grep -E "brpc"` |
   
   > Count reconciliation: the earlier analysis note said "13 places"; a 
full-tree grep finds
   > **24 occurrences of `./scripts/doris-debug` in 12 files** plus the **13 
bare
   > subcommand mentions** tabled above. Both are fully covered here.
   
   
   
   ### AI assistance
   
   AI assistance was used to prepare this change; every factual update was 
verified against
   `apache/doris` `6261b18` with the commands and evidence listed above.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to