scylladb / scylla-bench

43 stars 36 forks source link

scylla-bench swallows argument error #65

Open pveentjer opened 3 years ago

pveentjer commented 3 years ago

I was running the following command:

scylla-bench -workload sequential -mode write partition-count 5 -nodes 172.31.30.25

And ran into the following error

go/bin/scylla-bench -workload sequential -mode write partition-count 5 -nodes 172.31.30.25 2>&1 | tee -a scylla-bench-09-08-2021_09-47-39.log
2021/08/09 06:47:37 gocql: unable to create session: unable to discover protocol version: dial tcp 127.0.0.1:9042: connect: connection refused

The cause of this error is that the-nodes argument was not passed because there was a problem with 'partition-count'. So instead of '-partition-count' the hyphen was missing.

The consequence of this missing hyphen is that the whole -nodes argument is ignored. Apart from that, there is no feedback that an invalid argument was passed.