Skip to content

[fix] correct doris_fe_txn_counter metric label typo and description#3676

Merged
morningman merged 1 commit into
apache:masterfrom
boluor:fix-metrics-doc-txn
May 19, 2026
Merged

[fix] correct doris_fe_txn_counter metric label typo and description#3676
morningman merged 1 commit into
apache:masterfrom
boluor:fix-metrics-doc-txn

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented May 19, 2026

Summary

Two errors in the metrics doc (admin-manual/maint-monitor/metrics.md) for the doris_fe_txn_counter metric, both verified against the FE source MetricRepo.java:

  • add github star #14 — the type label is written succes; the metric actually emits success (COUNTER_TXN_SUCCESS.addLabel(new MetricLabel("type", "success"))). Fixed the doc typo.
  • fix Chinese translation bug #15 — the type="begin" row was described as "Number of committed transactions" (Chinese: "提交的事务数量"). The begin counter counts begun transactions (FE source description: "counter of beginning transactions"); commit corresponds to success. Corrected to "Number of begun transactions" / "开始的事务数量". The BE metric doris_be_stream_load_txn_request {type="begin"} in the same doc already correctly says "begun".

Applied across all affected versions: EN (next + 4.x) and Chinese (next + 2.1/3.x/4.x).

Test plan

  • Verified the label spelling and the begin counter semantics against apache/doris FE MetricRepo.java
  • Verified which versions contained each issue

Two errors in the metrics doc for the `doris_fe_txn_counter` metric,
verified against the FE source (MetricRepo.java):
- The `type` label `succes` is a doc typo; the metric emits `success`.
- The `type="begin"` row was described as "committed transactions",
  but it counts begun transactions (FE source: "counter of beginning
  transactions"). Corrected the EN and Chinese descriptions.

Applied across all affected EN and Chinese versions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@morningman morningman merged commit b1b07d7 into apache:master May 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants