[improve] Force Reschedule Auditor tasks
Motivation
This PR follows up the comments in this PR #3945
Now when we manually trigger auditor check, we need to restart Auditor or trigger a round of auditor election to take effect.
So I hope we can trigger auditor check more smoothly. Support for Auditor Tasks rescheduling is available.
Changes
By registering the specified zk node, the callback logic of Auditor tasks rescheduling is triggered.
This PR adds the following changes:
- Add specified zk node for reschedule auditor tasks.
- The callback logic for reschedule auditor tasks.
- Add metric for reschedule auditor tasks.
- Add force flag to
ForceAuditorChecksCmdto emit reschedule auditor tasks and cmd unit tests. - Add Auditor tasks to be rescheduled unit tests.
BP
BP #4025 email: https://lists.apache.org/thread/w1rqy6t2jr3qrrzxjh14rjllpgw97v98
@hangc0276 @horizonzy @zymap @StevenLuMT This PR is ready for review. I have improved the remaining functions & add metric & add trigger cmd and unit tests & add Auditor unit tests. PTAL. Thanks.
rerun failure checks
@hangc0276 Can we include this future in 4.16.2?
The function is still quite complicated,or add a BP to discuss?
@StevenLuMT Thanks. I have started a BP to discuss it. BP #4025 email: https://lists.apache.org/thread/w1rqy6t2jr3qrrzxjh14rjllpgw97v98