rocksdb/java
Aaron Kabcenell 56ed601df3 Compaction Read/Write Stats by Compaction Type (#7165)
Summary:
Adds compaction statistics (total bytes read and written) for compactions that occur for delete-triggered, periodic, and TTL compaction reasons.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7165

Test Plan:
TTL and periodic can be checked by runnning db_bench with the options activated:

/db_bench --benchmarks="fillrandom,stats" --statistics --num=10000000 -base_background_compactions=16 -periodic_compaction_seconds=1
./db_bench --benchmarks="fillrandom,stats" --statistics --num=10000000 -base_background_compactions=16 -fifo_compaction_ttl=1

Setting the time to one second causes non-zero bytes read/written for those compaction reasons. Disabling them or setting them to times longer than the test run length causes the stats to return to zero as expected.

Delete-triggered compaction counting is tested in DBTablePropertiesTest.DeletionTriggeredCompactionMarking

Reviewed By: ajkr

Differential Revision: D22693050

Pulled By: akabcenell

fbshipit-source-id: d15cef4d94576f703015c8942d5f0d492f69401d
2020-07-29 13:39:29 -07:00
..
benchmark/src/main/java/org/rocksdb/benchmark
crossbuild
jmh
rocksjni Compaction Read/Write Stats by Compaction Type (#7165) 2020-07-29 13:39:29 -07:00
samples/src/main/java
src Compaction Read/Write Stats by Compaction Type (#7165) 2020-07-29 13:39:29 -07:00
CMakeLists.txt SST Partitioner interface that allows to split SST files (#6957) 2020-07-24 13:44:49 -07:00
HISTORY-JAVA.md
jdb_bench.sh
Makefile SST Partitioner interface that allows to split SST files (#6957) 2020-07-24 13:44:49 -07:00
RELEASE.md
rocksjni.pom