tju-yxq opened a new pull request, #2642:
URL: https://github.com/apache/rocketmq-dashboard/pull/2642

   ## Summary
   - keep the native alert collection lease alive for the full collection pass, 
including passes that return no samples;
   - renew the lease conditionally for the current holder and stop active work 
when renewal is lost;
   - expose lease duration and renewal interval through alerting configuration.
   
   ## Why
   A long empty collection pass previously touched the lease only at pass start 
(and again only when non-empty samples were persisted). With the default lease 
duration, another Studio replica could acquire the lease while the original 
pass was still contacting brokers.
   
   ## Implementation
   - add holder- and expiry-checked lease renewal;
   - run a bounded daemon heartbeat per active collection pass;
   - cancel outstanding collectors and skip persistence after renewal failure;
   - shut down the renewal executor with the scheduler;
   - document the configuration and behavior.
   
   Closes #2641
   
   ## Verification
   - `mvn -q 
'-Dtest=CollectorSchedulerTest,MybatisPlusAlertCollectionLeaseTest' test` — 9 
tests passed;
   - `mvn -DskipTests=false test` — 1792 tests passed, 0 failures, 0 errors, 0 
skipped;
   - `git diff --check` passed.


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

Reply via email to