scylla-jmx/src/main/java/org/apache/cassandra
Amnon Heiman 9dae28e2f0 ColumnFamilyStore: finishLocalSampling should respect count limit
When calling nodetool toppartitions with size limit, finishLocalSampling
should respect that and limit the number of the results.

Example:
$ nodetool toppartitions -k 2 keyspace1 standard1 20
WRITES Sampler:
  Cardinality: ~2 (256 capacity)
  Top 2 partitions:
	Partition                Count       +/-
	38333032394d4f4d5030         4         3
	4e353937383137503330         4         3

READS Sampler:
  Cardinality: ~2 (256 capacity)
  Top 2 partitions:
	Nothing recorded during sampling period...

Fixes #66

Signed-off-by: Amnon Heiman <amnon@scylladb.com>
2019-06-23 15:31:18 +03:00
..
db ColumnFamilyStore: finishLocalSampling should respect count limit 2019-06-23 15:31:18 +03:00
gms FailureDetector: check that states is not null before use 2018-03-29 15:18:48 +03:00
locator Code formatting + source cleanup (eclipse) 2016-10-24 11:43:52 +00:00
metrics scylla-jmx: Fix tablemetricsobjectname breakage 2018-10-23 16:30:29 +03:00
net scylla-jmx: Update JMX interfaces to origin 3.11 2018-07-30 15:47:43 +03:00
repair Add the RepairParallelism enum 2015-08-27 20:46:02 +03:00
service StorageService: Include the arguments in "upgrade" call. 2019-02-27 10:33:43 +02:00
streaming Code formatting + source cleanup (eclipse) 2016-10-24 11:43:52 +00:00