Skip to content

Reintroduce replication factor parameter #2718

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

Merged
merged 2 commits into from
May 19, 2025
Merged

Reintroduce replication factor parameter #2718

merged 2 commits into from
May 19, 2025

Conversation

kim
Copy link
Contributor

@kim kim commented May 9, 2025

The --num-replicas option was removed from the CLI pre-1.0
It is re-introduced here as a hidden / unstable option to facilitate
testing (e.g. to override defaults).

The DatabaseDef type is changed to make num_replicas optional, so as
to distinguish "use the default" (None) from "shut down all replicas
but keep the database" (Some(0)).

API and ABI breaking changes

  • no

Expected complexity level and risk

1

Testing

  • Will be used later in smoketests

The `--num-replicas` option was removed from the CLI pre-1.0
It is re-introduced here as a hidden / unstable option to facilitate
testing (e.g. to override defaults).

The `DatabaseDef` type is changed to make `num_replicas` optional, so as
to distinguish "use the default" (`None`) from "shut down all replicas
but keep the database" (`Some(0)`).
Copy link
Contributor

@Shubham8287 Shubham8287 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Futher requesting review from @jdetter or @bfops as its cli change

Copy link
Collaborator

@bfops bfops left a comment

Choose a reason for hiding this comment

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

CLI changes LGTM!

@kim kim added this pull request to the merge queue May 19, 2025
Merged via the queue into master with commit c729c21 May 19, 2025
19 of 20 checks passed
@kim kim deleted the kim/optional-rf branch May 19, 2025 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants