From 2075011797faf3e6dae7aaf2abb1ace7add69197 Mon Sep 17 00:00:00 2001 From: lucklove Date: Thu, 12 Nov 2020 12:38:11 +0800 Subject: [PATCH] Fix tiflash not start with newest nightly PD --- 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