Scylla: Implement nodetool gettraceprobability

Created on 21 Sep 2020  路  5Comments  路  Source: scylladb/scylla

Currently we don't have it:

nodetool gettraceprobability
nodetool: Found unexpected parameters: [gettraceprobability]
See 'nodetool help' or 'nodetool help <command>'.

https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/tools/toolsGetTraceProbability.html

nodetool gettraceprobability
0

As a workaround we can use for now the API:
curl -X GET http://localhost:10000/storage_service/trace_probability

UX enhancement test

All 5 comments

I think this is a bug - we should support all the c* 3.0 options, and the fact that the API has the option supports this

I've opened a PR, the default output however differs a bit from what you pasted @gnumoreno :

Current trace probability: 0.0

what output is current? resp. what output are we compatible against?

@roydahan fix is being merged - need to write a test

Fixed by d45df0c705aea1d1dca9d06021bee9fac5dcc8e7

Was this page helpful?
0 / 5 - 0 ratings