I am trying to understand the pending compaction statistics that are displayed by cassandra nodetool that can be seen two ways. I am on cassandra 3.11.3. Why would the compaction statistics be different in nodetool tpstats and nodetool compactionstats . I see outputs
$ nodetool tpstats
Pool Name Active Pending Completed Blocked All time blocked
ReadStage 0 0 376576 0 0
MiscStage 0 0 0 0 0
CompactionExecutor 4 874 3166883 0 0
MutationStage 0 1 28160412450 0 0
nodetool compactionstats
pending tasks: 26
- system.sstable_activity: 1
The output of tpstats shows 874 compaction tasks but when I check what are the pending tasks, I see only 26 with the other command. How can I find what are the other (874-26) compaction tasks that cassandra is working on.