Skip to content

Conversation

@Gun9niR
Copy link
Contributor

@Gun9niR Gun9niR commented Apr 28, 2023

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

As title. Closes #9505

           Name           |     Value      | Mutable 
--------------------------+----------------+---------
 barrier_interval_ms      | 1000           | f
 checkpoint_frequency     | 10             | t
 sstable_size_mb          | 256            | f
 block_size_kb            | 64             | f
 bloom_false_positive     | 0.001          | f
 state_store              | hummock+memory | f
 data_directory           | hummock_001    | f
 backup_storage_url       | memory         | f
 backup_storage_directory | backup         | f
 telemetry_enabled        | true           | t
(10 rows)

Checklist For Contributors

  • All checks passed in ./risedev check (or alias, ./risedev c)

Documentation

Types of user-facing changes

Please keep the types that apply to your changes, and remove the others.

  • SQL commands, functions, and operators

Release note

SHOW PARAMETERS will display system parameters' mutability.

@Gun9niR Gun9niR added the user-facing-changes Contains changes that are visible to users label Apr 28, 2023
@github-actions github-actions bot added the type/feature Type: New feature. label Apr 28, 2023
Comment on lines +39 to +48
{ barrier_interval_ms, u32, Some(1000_u32), false },
{ checkpoint_frequency, u64, Some(10_u64), true },
{ sstable_size_mb, u32, Some(256_u32), false },
{ block_size_kb, u32, Some(64_u32), false },
{ bloom_false_positive, f64, Some(0.001_f64), false },
{ state_store, String, None, false },
{ data_directory, String, None, false },
{ backup_storage_url, String, Some("memory".to_string()), false },
{ backup_storage_directory, String, Some("backup".to_string()), false },
{ telemetry_enabled, bool, Some(true), true },
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't use const MUTABLE/IMMUTABLE here, because if for_all_undeprecated_params are used in other crates, they need to be imported as well, which seems unintuitive.

@Gun9niR Gun9niR requested review from BugenZhao, odysa and sumittal April 28, 2023 05:02
@codecov
Copy link

codecov bot commented Apr 28, 2023

Codecov Report

Merging #9526 (10cd46f) into main (1ea441f) will decrease coverage by 0.01%.
The diff coverage is 10.00%.

@@            Coverage Diff             @@
##             main    #9526      +/-   ##
==========================================
- Coverage   70.75%   70.75%   -0.01%     
==========================================
  Files        1232     1232              
  Lines      206264   206276      +12     
==========================================
+ Hits       145948   145954       +6     
- Misses      60316    60322       +6     
Flag Coverage Δ
rust 70.75% <10.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/frontend/src/handler/variable.rs 14.38% <0.00%> (-1.06%) ⬇️
src/meta/src/manager/system_param/mod.rs 20.45% <ø> (ø)
src/common/src/system_param/mod.rs 85.40% <22.22%> (-2.75%) ⬇️

... and 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@BugenZhao BugenZhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/feature Type: New feature. user-facing-changes Contains changes that are visible to users 📖✓ Covered or will be covered in the user docs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mark system parameters as immutable if they are constant

4 participants