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

Scylla startup fails with an error if "-c" or "-m" is used in SCYLLA_EXT_OPTS #539

Open
eliransin opened this issue Dec 10, 2023 · 2 comments

Comments

@eliransin
Copy link

It looks like ccm is unaware of the abbreviations for --smp and --memory (-c and -m) , this causes scylla startup to
fail with an error about same command line option for smp or/and memory being given twice.

Way to reproduce:
try to create and start a scylla cluster using export SCYLLA_EXT_OPTS="-c 2"

Scylla will fail with an error about duplicate command line options.

@eliransin eliransin self-assigned this Dec 10, 2023
eliransin pushed a commit to eliransin/scylla-ccm that referenced this issue Dec 10, 2023
when starting a cluster with an `SCYLLA_EXT_OPTS` env variable, if the
user sets the smp or memory using the abbreviated option name (-c or
-m), ScyllaDB will fail on startup due to double use of parameters.
This is because scylla-ccm fails to account for --smp and -c (for
example) as the same option, injecting the literal option into the
command line parameters.
Here we change this for --smp and --memory, with the option to add more
similar cases in the future.

Fixes scylladb#539

Signed-off-by: Eliran Sinvani <[email protected]>
@cezarmoise
Copy link
Contributor

@fruch should this be closed due to #558?

@fruch
Copy link
Contributor

fruch commented Sep 3, 2024

@fruch should this be closed due to #558?

Maybe, I have't tested this specific case.

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

No branches or pull requests

3 participants