cassandra icon indicating copy to clipboard operation
cassandra copied to clipboard

CASSANDRA-19335 Default nodetool tablestats to Human-Readable Output

Open zaaath opened this issue 2 years ago • 0 comments

Default to human-readable in nodetool tablestats. See a discussion on the topic in the dev mailing list [email protected]

Before

nodetool tablestats doesn't use the human-readable formatting by default (with KiB/MiB/GiB units), instead it outputs data size values as is. In order to switch to the human-readable output, --human-readable or --H CLI flag is required.

After

nodetool tablestats uses the human-readable format by default. For backward compatibility --no-human-readable flag can be used to disable it.

How to reproduce

nodetool tablestats

and

nodetool tablestats --no-human-readable

Tests

ant testsome -Dtest.name=org.apache.cassandra.tools.nodetool.TableStatsTest
ant testsome -Dtest.name=org.apache.cassandra.tools.nodetool.stats.TableStatsPrinterTest

patch by @zaaath; reviewed by ??? for CASSANDRA-19335

zaaath avatar Jan 28 '24 16:01 zaaath