-
Notifications
You must be signed in to change notification settings - Fork 596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(meta): only persist and handle changes when system params actually get updated #14602
Conversation
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
40151de
to
cafc647
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has totally checked 4744 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
2068 | 1 | 2675 | 0 |
Click to see the invalid file list
- src/common/src/system_param/diff.rs
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
@@ -202,8 +202,7 @@ pub fn init_risingwave_logger(settings: LoggerSettings) { | |||
// Configure levels for external crates. | |||
filter = filter | |||
.with_target("foyer", Level::WARN) | |||
.with_target("aws_sdk_ec2", Level::INFO) | |||
.with_target("aws_sdk_s3", Level::INFO) | |||
.with_target("aws", Level::INFO) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws_smithy_http
is too verbose under debug mode (with default level set to DEBUG
), especially that it yields spans with DEBUG
level frequently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest LGTM
pub struct SystemParamsReader<I = PbSystemParams> { | ||
inner: I, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why introducing I
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we want to create a reader with the reference to a PbSystemParams
:
risingwave/src/common/src/system_param/mod.rs
Line 327 in 3a54d0b
let changed = SystemParamsReader::new(&*params).$field() != v; |
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
…tually get updated (#14602) Signed-off-by: Bugen Zhao <[email protected]>
…tually get updated (#14602) Signed-off-by: Bugen Zhao <[email protected]>
…tually get updated (#14602) Signed-off-by: Bugen Zhao <[email protected]>
…tually get updated (#14602) Signed-off-by: Bugen Zhao <[email protected]>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Only persist and handle changes when system params actually get updated.
SystemParamsDiff
to show the updates.CommonHandler
introduced in feat: enable or disable tracing with system params #14528 will now directly run on the diff.Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.