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:
Andrés de la Peña 2023-04-17 11:23:12 +01:00
parent 83dd275d5d
commit 08b9471a1e
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
3.11.15
* Fix sstable_count metric missing from tablestats json/yaml output (CASSANDRA-18448)
* Suppress CVE-2022-45688 (CASSANDRA-18389)
* Fix Splitter sometimes creating more splits than requested (CASSANDRA-18013)
Merged from 3.0:

View File

@ -64,6 +64,7 @@ public class TableStatsHolder implements StatsHolder
{
Map<String, Object> mpTable = new HashMap<>();
mpTable.put("sstable_count", table.sstableCount);
mpTable.put("sstables_in_each_level", table.sstablesInEachLevel);
mpTable.put("space_used_live", table.spaceUsedLive);
mpTable.put("space_used_total", table.spaceUsedTotal);