Skip to content

[MCS] scheduler show does not display handler-only schedulers (evict-leader-scheduler, etc.) #10195

@King-Dylan

Description

@King-Dylan

Bug Report

After PR #7082 (introduced schedulerHandlers) In MCS mode, handler-only schedulers (e.g., evict-leader-scheduler) in API Service are stored in the schedulerHandlers map GetSchedulerNames() only iterates the schedulers map and does not include the schedulerHandlers map. This causes scheduler show to fail to display these schedulers

What did you do?

In MCS (Microservice) mode, after adding a scheduler via pd-ctl scheduler add evict-leader-scheduler <store-id>, executing scheduler show does not display the scheduler.

What did you expect to see?

scheduler show should display all added schedulers, including handler-only schedulers (e.g., evict-leader-scheduler).

What did you see instead?

scheduler show does not display handler-only schedulers, even though the scheduler has been successfully added and is working correctly.

What version of PD are you using (pd-server -V)?

v8.5.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributionThis PR is from a community contributor.type/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions