Skip to content

Conversation

@meierfra-ergon
Copy link
Contributor

This is a followup on my PR #5879 for Redis 6.0.
With Redis 6.0 redis-cli has an option to force cluster creation (without interaction) via the '--cluster-yes' option. Unfortunately there is still no '--force' option for the 'create-cluster create' script command.
Therefore I created this pull request to add a simple '-f' option to the script command. A more versatile approach would be to generically pass-thorough command-line options to redis-cli, but I wanted to keep the pull request small (to begin with).

@oranagra
Copy link
Member

oranagra commented Aug 4, 2020

@meierfra-ergon we don't take PRs directly into the release branch.
please make a PR to the unstable branch, then we'll cherry pick it to the release branch when we make a new release.

IIUC your previous PR had the same intention as time one, but used environment variable instead.
eventually it was accepted, but i guess Salvatore didn't noticed it was made to the wrong branch, so it got merged into 5.0 but since it wasn't part of the development (unstable) branch it bot lost and didn't make it to 6.0.

so considering some users already use the environment variable, do you think we better keep the previous approach? or is there a problem with it and you prefer the one in this PR?

@oranagra oranagra closed this Aug 4, 2020
@meierfra-ergon
Copy link
Contributor Author

@oranagra thanks, I think you're right I should implement the same behavior (with the environment variable) to not break compatibility in redis-cli.
But would you also welcome an additional option to the cluster-create script for convenience?
In any case I will open a new pull-request to unstable.

@oranagra
Copy link
Member

oranagra commented Aug 4, 2020

@meierfra-ergon i'm ok with having both options. the previous one was already accepted by Salvatore and merged, and i suppose we better keep backwards compatibility (of redis-cli, not just the create-cluster script). and the new one is more convenient to use, and it doesn't add any significant code complexity.

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.

2 participants