Skip to content
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

Merged
merged 5 commits into from
Nov 26, 2024

Conversation

BugenZhao
Copy link
Member

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 in risedev 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

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • All checks passed in ./risedev check (or alias, ./risedev c)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

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.

@BugenZhao BugenZhao marked this pull request as ready for review November 25, 2024 09:25
@BugenZhao BugenZhao requested a review from a team as a code owner November 25, 2024 09:25
@BugenZhao BugenZhao requested review from lmatz, yezizp2012 and xxchan and removed request for lmatz November 25, 2024 09:25
Copy link
Member

@xxchan xxchan left a 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") {
Copy link
Member

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

Copy link
Member Author

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

src/risedevtool/src/task/meta_node_service.rs Outdated Show resolved Hide resolved
@xxchan
Copy link
Member

xxchan commented Nov 25, 2024

yaml not updated? 👀

@BugenZhao
Copy link
Member Author

yaml not updated? 👀

Won't be in this PR. 🥰

Copy link
Member Author

BugenZhao commented Nov 26, 2024

Copy link
Member

@yezizp2012 yezizp2012 left a comment

Choose a reason for hiding this comment

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

LGTM!

@BugenZhao BugenZhao added this pull request to the merge queue Nov 26, 2024
Merged via the queue into main with commit 21ea2bc Nov 26, 2024
29 of 30 checks passed
@BugenZhao BugenZhao deleted the bz/junior-jackal branch November 26, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants