wyxxxcat opened a new pull request, #70803:
URL: https://github.com/apache/doris/pull/70803
### Background
The Recycler reports cumulative task events for each process.
### What problem does this PR solve?
Issue Number: None
Related PR: #55455 (introduced the metric)
PR Type: Enhancement
Problem Summary:
Cumulative task events cannot show whether a specific instance is
currently being recycled. Expose the current state for each instance
on the reporting Recycler.
### Details
- **Before and after:** Change `recycler_instance_recycle_task_status`
from event counters to a gauge labeled by `instance_id`. The first
worker pickup sets it to 0. It reads 1 during a recycle task and
returns to 0 when the task completes, fails, or is stopped.
- **Configs and defaults:** None.
- **Impact on existing users:** Monitoring queries using the old
`status` label need to use the `instance_id` gauge.
### Testing
Reviewed the metric declaration and worker state transitions in source.
The candidate was not built or tested.
### Release note
`recycler_instance_recycle_task_status` now reports 1 for an active
recycle task and 0 for an idle instance.
### Check List (For Author)
- Behavior changed: Yes (see Details)
- Does this need documentation: Yes (update the Recycler metric definition)
- Pre-submission status: Partially verified: candidate build and tests were
not run.
### AI Disclosure
- Tool: Codex (GPT-6)
- Generated: Code and draft commit message
- Human review: not stated
--
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]