From af1ddb7626f1fe02fbeb27c33719e2cb57b314fa Mon Sep 17 00:00:00 2001 From: Lyn Nagara Date: Mon, 26 Jun 2023 10:21:47 -0700 Subject: [PATCH] feat: Devserver enforces schema for topics where one is defined (#4410) --- snuba/cli/devserver.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/snuba/cli/devserver.py b/snuba/cli/devserver.py index 2e7e59514d..b66a824710 100644 --- a/snuba/cli/devserver.py +++ b/snuba/cli/devserver.py @@ -46,6 +46,7 @@ def devserver(*, bootstrap: bool, workers: bool) -> None: "--log-level=debug", "--storage=transactions", "--consumer-group=transactions_group", + "--enforce-schema", ], ), ( @@ -70,6 +71,7 @@ def devserver(*, bootstrap: bool, workers: bool) -> None: "--log-level=debug", "--storage=outcomes_raw", "--consumer-group=outcomes_group", + "--enforce-schema", ], ), ( @@ -214,6 +216,7 @@ def devserver(*, bootstrap: bool, workers: bool) -> None: "--no-strict-offset-reset", "--log-level=debug", "--consumer-group=snuba-metrics-consumers", + "--enforce-schema", ], ), ( @@ -226,6 +229,7 @@ def devserver(*, bootstrap: bool, workers: bool) -> None: "--no-strict-offset-reset", "--log-level=debug", "--consumer-group=snuba-gen-metrics-distributions-consumers", + "--enforce-schema", ], ), ( @@ -238,6 +242,7 @@ def devserver(*, bootstrap: bool, workers: bool) -> None: "--no-strict-offset-reset", "--log-level=debug", "--consumer-group=snuba-gen-metrics-sets-consumers", + "--enforce-schema", ], ), ( @@ -250,6 +255,7 @@ def devserver(*, bootstrap: bool, workers: bool) -> None: "--no-strict-offset-reset", "--log-level=debug", "--consumer-group=snuba-gen-metrics-counters-consumers", + "--enforce-schema", ], ), ] @@ -429,6 +435,7 @@ def devserver(*, bootstrap: bool, workers: bool) -> None: "--log-level=debug", "--storage=spans", "--consumer-group=spans_group", + "--enforce-schema", ], ), ]