wyxxxcat opened a new pull request, #70801:
URL: https://github.com/apache/doris/pull/70801

   ### Background
   
   Cloud compaction replaces its input rowsets and records them for recycling.
   Recycler uses these records to clean up obsolete rowsets and remove their
   recycle keys.
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: None
   PR Type: Enhancement
   
   Problem Summary:
   
   Cloud operators need per-instance counts to see how quickly compaction adds
   recycle keys and how quickly Recycler removes them. Add two cumulative
   counters labeled by `instance_id` for successful operations on these paths.
   
   ### Details
   
   - **Before and after:** `compaction_recycle_rowset_kv_put_total` counts 
direct recycle rowset KV puts after Meta Service commits the compaction 
transaction. `compaction_recycle_rowset_kv_remove_total` counts successful 
`COMPACT` recycle key removals in the batch and versioned rowset scan paths.
   - **Configs and defaults:** None.
   - **Impact on existing users:** The counters are populated as matching 
operations succeed and can be collected through the existing Cloud metrics 
endpoints.
   
   ### Testing
   
   Reviewed the commit diff. Runtime verification of the new counters is 
pending.
   
   ### Notes for Reviewers
   
   - With versioned writes, operation-log replay creates the recycle keys. The 
versioned rowset scanner counts their later removal, so the put and remove 
counters cover different sets of operations in this mode.
   
   ### Release note
   
   Cloud metrics expose per-instance counters for direct compaction recycle
   rowset KV puts and successful compaction recycle key removals.
   
   ### Check List (For Author)
   
   - Behavior changed: No
   - Does this need documentation: No
   - Pre-submission status: Partially verified: runtime counter values are 
pending verification.
   
   ### AI Disclosure
   
   - Tool: Codex (GPT-6)
   - Generated: PR title and 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]

Reply via email to