-
Notifications
You must be signed in to change notification settings - Fork 590
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(risedev): support configuring meta store by url from env var #19560
Conversation
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.
ok
@@ -245,6 +260,18 @@ impl Task for MetaNodeService { | |||
cmd.arg("--config-path") | |||
.arg(Path::new(&prefix_config).join("risingwave.toml")); | |||
|
|||
if let MetaBackend::Env = self.config.meta_backend { | |||
if is_env_set("RISEDEV_CLEAN_START") { |
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.
It might be a little confusing that RISEDEV_CLEAN_START
only works with meta-backend: env
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.
It's not meant to be set by user directly but when running risedev ci-start
.
The basic idea is that, I don't want to hack the procedure of risedev clean-data
to involve such operation, so it's postponed to the next startup. It only applies to ci-start
because
- the main motivation is CI as described in make ci e2e scripts meta backend agnostic #19527
- for
ci-start
we are sure that we want a fresh cluster
yaml not updated? 👀 |
Won't be in this PR. 🥰 |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
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.
LGTM!
52500b9
to
e802bee
Compare
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
e638784
to
be023ee
Compare
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
See ideas in #19527.
When specifying
meta-backend: env
for the meta-node service inrisedev dev
, RiseDev will now pass it verbatim as--sql-endpoint
to the meta node.Additionally, if the cluster is started with
ci-start
, RiseDev will help to recreate the database that will be used.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.