From 402079dbc40bc7397d4b136eccacee833c81d898 Mon Sep 17 00:00:00 2001 From: SIGSEGV Date: Mon, 16 Nov 2020 18:06:01 +0800 Subject: [PATCH] Fix tiflash not start with newest nightly PD (#902) --- components/playground/instance/tiflash.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/playground/instance/tiflash.go b/components/playground/instance/tiflash.go index 959827693b..8e8c314076 100644 --- a/components/playground/instance/tiflash.go +++ b/components/playground/instance/tiflash.go @@ -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 { @@ -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