Skip to content

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
kim added a commit that referenced this pull request May 20, 2025
@kim kim mentioned this pull request May 20, 2025
1 task
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.

4 participants