wyxxxcat commented on PR #70803:
URL: https://github.com/apache/doris/pull/70803#issuecomment-7341443160

   <!-- doris-repo-review:v1:begin -->
   ### Local pipeline review — ✅ PASS
   
   ```yaml
   schema: doris-repo-review/v1
   status: PASS
   pr: apache/doris#70803
   commit: 8313c3719a51a988c7b927d9006e5c09d2af8da1
   base: e2d337568b5ef95a7908e9f5989a49f7b0c62ecf
   reviewed_at: 2026-12-02T17:45+08:00
   reviewer: wyxxxcat
   model: gpt-6-astra
   effort: xhigh
   findings: {blocker: 0, major: 0, minor: 2, nit: 0}
   rounds: 1
   converged: true
   ```
   
   **Notes for maintainers**
   
   - **F-01 — Minor, observability, Regression: yes:** 
`cloud/src/recycler/recycler.cpp:432` can report idle while a same-instance 
callback is still running. Concrete source-derived schedule: with multiple 
workers and `recycle_interval_seconds=1`, A passes the map check and stalls in 
accessor initialization; a second request queues B, which runs longer than the 
interval and commits IDLE. Before B performs local cleanup, A resumes, 
successfully prepares, ignores a failed map `emplace`, sets active=1 and starts 
work; B then overwrites it with 0. The underlying admission race predates this 
PR; the newly introduced effect is inaccurate monitoring, and no 
scheduling/data path reads the gauge, so this remains Minor. Use exclusive 
execution ownership or a synchronized live-callback count to drive the boolean, 
and cover this handoff with barriers. [Changed 
reset](https://github.com/apache/doris/blob/8313c3719a51a988c7b927d9006e5c09d2af8da1/cloud/src/recycler/recycler.cpp#L432).
   - **F-02 — Minor, test-coverage, Regression: no:** 
`cloud/src/recycler/recycler.cpp:419` has no test observing the new activity 
lifecycle. The existing callback test disables recycling and checks only 
queue/set/map; direct `do_recycle()` tests bypass these writes. Add 
deterministic assertions for 1 during execution and 0 after success/error/stop, 
idle skip paths, the F-01 handoff, and preserved submitted/error/completed 
deltas. Inspect exported-series existence rather than only 
`mBvarWrapper::get()`, which creates missing series. [Activity 
write](https://github.com/apache/doris/blob/8313c3719a51a988c7b927d9006e5c09d2af8da1/cloud/src/recycler/recycler.cpp#L419).
   - Static review of all three changed files and relevant callers, lifecycle, 
tests and pinned brpc 1.4.0 implementations. No build, tests, live scrape or 
concurrency reproduction was run. The earlier inline old-metric compatibility 
concern is fixed at this head: the existing event counter and status label 
remain intact.
   
   <sub>Reviewed locally with the `doris-repo-review` pipeline. Repository 
policy may accept this receipt for the matching commit; it is not a human 
Apache approval.</sub>
   <!-- doris-repo-review:v1:end -->
   


-- 
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