-
Notifications
You must be signed in to change notification settings - Fork 595
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
feat(cmd_all): create directories in single_node
mode
#15176
Conversation
src/cmd_all/src/single_node.rs
Outdated
// wait for log messages to be flushed | ||
tokio::time::sleep(std::time::Duration::from_millis(100)).await; |
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.
You mean this?
// wait for log messages to be flushed | |
tokio::time::sleep(std::time::Duration::from_millis(100)).await; | |
io::stdout().flush().unwrap(); |
src/cmd_all/src/single_node.rs
Outdated
|
||
// TODO: should we join all handles? | ||
// Currently, not all services can be shutdown gracefully, just quit on Ctrl-C now. | ||
// TODO(kwannoel): Why can't be shutdown gracefully? Is it that the service just does not |
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.
Have you tried joining all handles after receiving signal::ctrl_c
? Does it work? I think it would work 🤔
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.
Would you mind filling the PR body to show some backgrounds, and how the directory structure looks like before and after this PR?
src/cmd_all/src/bin/risingwave.rs
Outdated
let settings = risingwave_rt::LoggerSettings::from_opts(&opts) | ||
.with_target("risingwave_storage", Level::WARN) | ||
.with_thread_name(true); | ||
risingwave_rt::init_risingwave_logger(settings); | ||
risingwave_rt::main_okk(risingwave_cmd_all::standalone(opts)).unwrap(); | ||
risingwave_rt::main_okk(risingwave_cmd_all::single_node(opts)).unwrap(); |
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.
May I know the difference between them?
src/cmd_all/src/single_node.rs
Outdated
// wait for log messages to be flushed | ||
tokio::time::sleep(std::time::Duration::from_millis(100)).await; | ||
eprintln!("-------------------------------"); | ||
eprintln!("RisingWave single_node mode is ready."); |
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.
eprintln!("RisingWave single_node mode is ready."); | |
eprintln!("RisingWave single node mode is ready."); |
Will do the refactor another time. Want to get the single node mode ready first. |
Will address the review comments in a separate PR, when I refactor Now this PR only contains changes to create the meta store. |
single_node
mode
17f6ee4
to
72e2c98
Compare
Bump, PTAL @BugenZhao , @fuyufjh , the refactors have been stripped from this PR. Now we just create store directories. |
single_node
modesingle_node
mode
Merge queue setting changed
72e2c98
to
0d1606e
Compare
) Co-authored-by: Noel Kwan <[email protected]>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Closes #15062
Just create
state_store
,meta_store
directories, if they did not exist.The default store directory is:
So by default, the following directories are created:
Checklist
Also separate
single_node
fromstandalone_mode
../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.