rocksdb/java/rocksjni
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
..
backupablejni.cc
backupenginejni.cc
cassandra_compactionfilterjni.cc
cassandra_value_operator.cc
checkpoint.cc
clock_cache.cc
columnfamilyhandle.cc
compact_range_options.cc
compaction_filter.cc
compaction_filter_factory.cc
compaction_filter_factory_jnicallback.cc
compaction_filter_factory_jnicallback.h
compaction_job_info.cc
compaction_job_stats.cc
compaction_options.cc
compaction_options_fifo.cc
compaction_options_universal.cc
comparator.cc
comparatorjnicallback.cc
comparatorjnicallback.h
compression_options.cc
config_options.cc Add a ConfigOptions for use in comparing objects and converting to/from strings (#6389) 2020-04-21 17:38:17 -07:00
env.cc
env_options.cc
filter.cc
ingest_external_file_options.cc
iterator.cc Add RocksIterator::Refresh (#6573) 2020-04-16 15:55:26 -07:00
jnicallback.cc Fix tabs and lint-ignores (#6734) 2020-04-20 11:39:31 -07:00
jnicallback.h Fix tabs and lint-ignores (#6734) 2020-04-20 11:39:31 -07:00
loggerjnicallback.cc
loggerjnicallback.h
lru_cache.cc
memory_util.cc
memtablejni.cc
merge_operator.cc
native_comparator_wrapper_test.cc
optimistic_transaction_db.cc
optimistic_transaction_options.cc
options.cc SST Partitioner interface that allows to split SST files (#6957) 2020-07-24 13:44:49 -07:00
options_util.cc Add a ConfigOptions for use in comparing objects and converting to/from strings (#6389) 2020-04-21 17:38:17 -07:00
persistent_cache.cc
portal.h Compaction Read/Write Stats by Compaction Type (#7165) 2020-07-29 13:39:29 -07:00
ratelimiterjni.cc
remove_emptyvalue_compactionfilterjni.cc
restorejni.cc
rocks_callback_object.cc Fix tabs and lint-ignores (#6734) 2020-04-20 11:39:31 -07:00
rocksdb_exception_test.cc
rocksjni.cc Add DB::OpenAsSecondary to RocksJava (#7047) 2020-07-06 11:48:57 -07:00
slice.cc
snapshot.cc
sst_file_manager.cc
sst_file_reader_iterator.cc Add RocksIterator::Refresh (#6573) 2020-04-16 15:55:26 -07:00
sst_file_readerjni.cc
sst_file_writerjni.cc
sst_partitioner.cc SST Partitioner interface that allows to split SST files (#6957) 2020-07-24 13:44:49 -07:00
statistics.cc
statisticsjni.cc Fix tabs and lint-ignores (#6734) 2020-04-20 11:39:31 -07:00
statisticsjni.h Fix tabs and lint-ignores (#6734) 2020-04-20 11:39:31 -07:00
table.cc Align RocksJava BlockBasedTableOptions with C++ API (#7088) 2020-07-10 14:32:58 -07:00
table_filter.cc
table_filter_jnicallback.cc
table_filter_jnicallback.h
thread_status.cc
trace_writer.cc
trace_writer_jnicallback.cc
trace_writer_jnicallback.h
transaction.cc
transaction_db.cc
transaction_db_options.cc
transaction_log.cc
transaction_notifier.cc
transaction_notifier_jnicallback.cc
transaction_notifier_jnicallback.h
transaction_options.cc
ttl.cc
wal_filter.cc
wal_filter_jnicallback.cc
wal_filter_jnicallback.h
write_batch.cc
write_batch_test.cc
write_batch_with_index.cc Add newer WBWI::NewIteratorWithBase functions to RocksJava (#6872) 2020-05-27 11:59:12 -07:00
write_buffer_manager.cc
writebatchhandlerjnicallback.cc
writebatchhandlerjnicallback.h