Skip to content

Commit

Permalink
Fix tiflash not start with newest nightly PD (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucklove authored Nov 16, 2020
1 parent cc41ad5 commit 402079d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/playground/instance/tiflash.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ type scheduleConfig struct {
}

type replicateMaxReplicaConfig struct {
MaxReplicas int `json:"max-replicas"`
MaxReplicas int `json:"max-replicas"`
EnablePlacementRules string `json:"enable-placement-rules"`
}

type replicateEnablePlacementRulesConfig struct {
Expand Down Expand Up @@ -128,7 +129,8 @@ func (inst *TiFlashInstance) Start(ctx context.Context, version v0manifest.Versi
}
// Update maxReplicas before placement rules so that it would not be overwritten
maxReplicas, err := json.Marshal(replicateMaxReplicaConfig{
MaxReplicas: 1,
MaxReplicas: 1,
EnablePlacementRules: "false",
})
if err != nil {
return err
Expand Down

0 comments on commit 402079d

Please sign in to comment.