From afdc0088550866c8a08dbcb65e02a85973e39f1f Mon Sep 17 00:00:00 2001 From: Dom Dwyer Date: Fri, 14 Oct 2022 16:05:56 +0200 Subject: [PATCH] fix: correct default limits --- iox_catalog/src/lib.rs | 4 ++-- router/src/dml_handlers/ns_autocreation.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iox_catalog/src/lib.rs b/iox_catalog/src/lib.rs index 6986c2a585..471ef23314 100644 --- a/iox_catalog/src/lib.rs +++ b/iox_catalog/src/lib.rs @@ -28,9 +28,9 @@ const SHARED_QUERY_POOL: &str = SHARED_TOPIC_NAME; const TIME_COLUMN: &str = "time"; /// Default per-namespace table count service protection limit. -const DEFAULT_MAX_TABLES: i32 = 1000; +pub const DEFAULT_MAX_TABLES: i32 = 10_000; /// Default per-table column count service protection limit. -const DEFAULT_MAX_COLUMNS_PER_TABLE: i32 = 200; +pub const DEFAULT_MAX_COLUMNS_PER_TABLE: i32 = 200; /// A string value representing an infinite retention policy. pub const INFINITE_RETENTION_POLICY: &str = "inf"; diff --git a/router/src/dml_handlers/ns_autocreation.rs b/router/src/dml_handlers/ns_autocreation.rs index 81e5ebb608..4e5c2d6343 100644 --- a/router/src/dml_handlers/ns_autocreation.rs +++ b/router/src/dml_handlers/ns_autocreation.rs @@ -223,8 +223,8 @@ mod tests { retention_duration: Some("inf".to_owned()), topic_id: TopicId::new(42), query_pool_id: QueryPoolId::new(42), - max_tables: 10000, - max_columns_per_table: 1000, + max_tables: iox_catalog::DEFAULT_MAX_TABLES, + max_columns_per_table: iox_catalog::DEFAULT_MAX_COLUMNS_PER_TABLE, } ); }