Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
add deploy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuLiangWang committed Oct 7, 2023
1 parent 7974b6b commit 52b8f67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/coordinator/scheduler/reopen_shard_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func NewReopenShardScheduler(factory *coordinator.Factory, procedureExecutingBat
}
}

func (r ReopenShardScheduler) UpdateDeployMode(_ context.Context, _ bool) {
// ReopenShardScheduler do not need deployMode.
}

func (r ReopenShardScheduler) Schedule(ctx context.Context, clusterSnapshot metadata.Snapshot) (ScheduleResult, error) {
// ReopenShardScheduler can only be scheduled when the cluster is stable.
if !clusterSnapshot.Topology.IsStable() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ func NewStaticTopologyShardScheduler(factory *coordinator.Factory, nodePicker co
return StaticTopologyShardScheduler{factory: factory, nodePicker: nodePicker, procedureExecutingBatchSize: procedureExecutingBatchSize}
}

func (s StaticTopologyShardScheduler) UpdateDeployMode(_ context.Context, _ bool) {
// StaticTopologyShardScheduler do not need deployMode.
}

func (s StaticTopologyShardScheduler) Schedule(ctx context.Context, clusterSnapshot metadata.Snapshot) (ScheduleResult, error) {
var procedures []procedure.Procedure
var reasons strings.Builder
Expand Down

0 comments on commit 52b8f67

Please sign in to comment.