api: add a new scheduler to balance the regions of the given key range #8988
64.25% of diff hit (target 74.91%)
View this Pull Request on Codecov
64.25% of diff hit (target 74.91%)
Annotations
Check warning on line 320 in pkg/mcs/scheduling/server/cluster.go
codecov / codecov/patch
pkg/mcs/scheduling/server/cluster.go#L319-L320
Added lines #L319 - L320 were not covered by tests
Check warning on line 40 in pkg/schedule/schedulers/balance_key_range.go
codecov / codecov/patch
pkg/schedule/schedulers/balance_key_range.go#L39-L40
Added lines #L39 - L40 were not covered by tests
Check warning on line 47 in pkg/schedule/schedulers/balance_key_range.go
codecov / codecov/patch
pkg/schedule/schedulers/balance_key_range.go#L46-L47
Added lines #L46 - L47 were not covered by tests
Check warning on line 100 in pkg/schedule/schedulers/balance_key_range.go
codecov / codecov/patch
pkg/schedule/schedulers/balance_key_range.go#L88-L100
Added lines #L88 - L100 were not covered by tests
Check warning on line 127 in pkg/schedule/schedulers/balance_key_range.go
codecov / codecov/patch
pkg/schedule/schedulers/balance_key_range.go#L126-L127
Added lines #L126 - L127 were not covered by tests
Check warning on line 144 in pkg/schedule/schedulers/balance_key_range.go
codecov / codecov/patch
pkg/schedule/schedulers/balance_key_range.go#L143-L144
Added lines #L143 - L144 were not covered by tests
Check warning on line 558 in pkg/schedule/schedulers/init.go
codecov / codecov/patch
pkg/schedule/schedulers/init.go#L557-L558
Added lines #L557 - L558 were not covered by tests
Check warning on line 565 in pkg/schedule/schedulers/init.go
codecov / codecov/patch
pkg/schedule/schedulers/init.go#L564-L565
Added lines #L564 - L565 were not covered by tests
Check warning on line 569 in pkg/schedule/schedulers/init.go
codecov / codecov/patch
pkg/schedule/schedulers/init.go#L568-L569
Added lines #L568 - L569 were not covered by tests
Check warning on line 573 in pkg/schedule/schedulers/init.go
codecov / codecov/patch
pkg/schedule/schedulers/init.go#L572-L573
Added lines #L572 - L573 were not covered by tests
Check warning on line 577 in pkg/schedule/schedulers/init.go
codecov / codecov/patch
pkg/schedule/schedulers/init.go#L576-L577
Added lines #L576 - L577 were not covered by tests
Check warning on line 581 in pkg/schedule/schedulers/init.go
codecov / codecov/patch
pkg/schedule/schedulers/init.go#L580-L581
Added lines #L580 - L581 were not covered by tests
Check warning on line 111 in server/api/scheduler.go
codecov / codecov/patch
server/api/scheduler.go#L109-L111
Added lines #L109 - L111 were not covered by tests
Check warning on line 115 in server/api/scheduler.go
codecov / codecov/patch
server/api/scheduler.go#L113-L115
Added lines #L113 - L115 were not covered by tests
Check warning on line 123 in server/api/scheduler.go
codecov / codecov/patch
server/api/scheduler.go#L121-L123
Added lines #L121 - L123 were not covered by tests
Check warning on line 129 in server/api/scheduler.go
codecov / codecov/patch
server/api/scheduler.go#L127-L129
Added lines #L127 - L129 were not covered by tests
Check warning on line 134 in server/api/scheduler.go
codecov / codecov/patch
server/api/scheduler.go#L132-L134
Added lines #L132 - L134 were not covered by tests
Check warning on line 437 in tools/pd-ctl/pdctl/command/scheduler.go
codecov / codecov/patch
tools/pd-ctl/pdctl/command/scheduler.go#L435-L437
Added lines #L435 - L437 were not covered by tests
Check warning on line 442 in tools/pd-ctl/pdctl/command/scheduler.go
codecov / codecov/patch
tools/pd-ctl/pdctl/command/scheduler.go#L440-L442
Added lines #L440 - L442 were not covered by tests