From 8117e9a0fa7123ffcce0b2a6ff10943550d8ea80 Mon Sep 17 00:00:00 2001 From: Henry Lonng Date: Mon, 20 Jun 2022 20:16:37 -0700 Subject: [PATCH] playground: fix scale-out cdc command (#1935) --- components/playground/playground.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/playground/playground.go b/components/playground/playground.go index 9490754226..3698770456 100644 --- a/components/playground/playground.go +++ b/components/playground/playground.go @@ -525,6 +525,11 @@ func (p *Playground) commandHandler(w http.ResponseWriter, r *http.Request) { return } + // Mapping command line component id to internal spec component id. + if cmd.ComponentID == ticdc { + cmd.ComponentID = spec.ComponentCDC + } + err = p.handleCommand(cmd, w) if err != nil { w.WriteHeader(403)