Repository: risingwavelabs/risingwave
File: src/common/src/config/mod.rs (Rust)

Code before:
            1024
        }

        pub fn iceberg_sink_write_parquet_max_row_group_rows() -> usize {
            100_000
        }

        pub fn materialize_force_overwrite_on_no_check() -> bool {
            false
        }

        pub fn refresh_scheduler_interval_sec() -> u64 {
            60
        }

        pub fn sync_log_store_pause_duration_ms() -> usize {
            64
        }

        pub fn sync_log_store_buffer_size() -> usize {
            2048
        }

        pub fn enable_state_table_vnode_stats_prunning() -> bool {
            false
        }
    }
}

pub const MAX_META_CACHE_SHARD_BITS: usize = 4;
pub const MIN_BUFFER_SIZE_PER_SHARD: usize = 256;
pub const MAX_BLOCK_CACHE_SHARD_BITS: usize = 6; // It means that there will be 64 shards lru-cache to avoid lock conflict.

#[cfg(test)]
pub mod tests {
    use expect_test::expect;
    use risingwave_license::LicenseKey;

    use super::*;

    fn default_config_for_docs() -> RwConfig {
        let mut config = RwConfig::default();
        // Set `license_key` to empty in the docs to avoid any confusion.
        config.system.license_key = Some(LicenseKey::empty());
        config
    }

    /// This test ensures that `config/example.toml` is up-to-date with the default values specified
    /// in this file. Developer should run `./risedev generate-example-config` to update it if this
    /// test fails.
    #[test]

Review comment (suggestion):
Spelling error: "prunning" should be "pruning" (single 'n'). This affects the default function name which should be `enable_state_table_vnode_stats_pruning` instead of `enable_state_table_vnode_stats_prunning`.
```suggestion
        pub fn enable_state_table_vnode_stats_pruning() -> bool {
            false
        }

        /// Deprecated alias kept for backward compatibility. Use
        /// [`enable_state_table_vnode_stats_pruning`] instead.
        #[deprecated(
            note = "use `default::developer::enable_state_table_vnode_stats_pruning` instead"
        )]
        pub fn enable_state_table_vnode_stats_prunning() -> bool {
            enable_state_table_vnode_stats_pruning()
        }
```

Code after:
            1024
        }

        pub fn iceberg_sink_write_parquet_max_row_group_rows() -> usize {
            100_000
        }

        pub fn materialize_force_overwrite_on_no_check() -> bool {
            false
        }

        pub fn refresh_scheduler_interval_sec() -> u64 {
            60
        }

        pub fn sync_log_store_pause_duration_ms() -> usize {
            64
        }

        pub fn sync_log_store_buffer_size() -> usize {
            2048
        }

        pub fn enable_state_table_vnode_stats_pruning() -> bool {
            false
        }
    }
}

pub const MAX_META_CACHE_SHARD_BITS: usize = 4;
pub const MIN_BUFFER_SIZE_PER_SHARD: usize = 256;
pub const MAX_BLOCK_CACHE_SHARD_BITS: usize = 6; // It means that there will be 64 shards lru-cache to avoid lock conflict.

#[cfg(test)]
pub mod tests {
    use expect_test::expect;
    use risingwave_license::LicenseKey;

    use super::*;

    fn default_config_for_docs() -> RwConfig {
        let mut config = RwConfig::default();
        // Set `license_key` to empty in the docs to avoid any confusion.
        config.system.license_key = Some(LicenseKey::empty());
        config
    }

    /// This test ensures that `config/example.toml` is up-to-date with the default values specified
    /// in this file. Developer should run `./risedev generate-example-config` to update it if this
    /// test fails.
    #[test]