mirror of https://github.com/apache/cassandra
Fix sstable_count metric missing from tablestats json/yaml output
patch by Andrés de la Peña; reviewed by Brandon Williams and Ekaterina Dimitrova for CASSANDRA-18448
This commit is contained in:
parent
83dd275d5d
commit
08b9471a1e
|
|
@ -1,4 +1,5 @@
|
||||||
3.11.15
|
3.11.15
|
||||||
|
* Fix sstable_count metric missing from tablestats json/yaml output (CASSANDRA-18448)
|
||||||
* Suppress CVE-2022-45688 (CASSANDRA-18389)
|
* Suppress CVE-2022-45688 (CASSANDRA-18389)
|
||||||
* Fix Splitter sometimes creating more splits than requested (CASSANDRA-18013)
|
* Fix Splitter sometimes creating more splits than requested (CASSANDRA-18013)
|
||||||
Merged from 3.0:
|
Merged from 3.0:
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@ public class TableStatsHolder implements StatsHolder
|
||||||
{
|
{
|
||||||
Map<String, Object> mpTable = new HashMap<>();
|
Map<String, Object> mpTable = new HashMap<>();
|
||||||
|
|
||||||
|
mpTable.put("sstable_count", table.sstableCount);
|
||||||
mpTable.put("sstables_in_each_level", table.sstablesInEachLevel);
|
mpTable.put("sstables_in_each_level", table.sstablesInEachLevel);
|
||||||
mpTable.put("space_used_live", table.spaceUsedLive);
|
mpTable.put("space_used_live", table.spaceUsedLive);
|
||||||
mpTable.put("space_used_total", table.spaceUsedTotal);
|
mpTable.put("space_used_total", table.spaceUsedTotal);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue