fix: correct default limits

pull/24376/head
Dom Dwyer 2022-10-14 16:05:56 +02:00
parent e4179605df
commit afdc008855
2 changed files with 4 additions and 4 deletions

View File

@ -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";

View File

@ -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,
}
);
}