When I issue
$ nodetool compactionhistory
I get
. . . compacted_at bytes_in bytes_out rows_merged
. . . 1404936947592 8096 7211 {1:3, 3:1}
What does {1:3, 3:1}
mean? The only documentation I can find is this which states
the number of partitions merged
which does not explain why multiple values and what the colon means.
So basically it means {tables:rows} for example {1:3, 3:1} means 3 rows were taken from one sstable (1:3) and 1 row taken from 3 (3:1) sstables, all to make the one sstable in that compaction operation.
I tried it out myself so here's an example, I hope this helps:
create keyspace and table:
Now we flush to create the sstable
We see that only one version of the table is created
check the sstable2json we see our data
At this point ‘notetool compactionhistory’ shows nothing for this table but lets run compact anyway to see what we get (scroll right)
Now lets delete two rows, and flush
Lets check the tables contents
Now lets compact
Only one stable now as expected
Now lets check the contents of the new stable we can see the tombstones
Finally lets check compaction history (scroll right)