rocksdb/utilities/cassandra
Pengchao Wang e4234fbdcf collecting kValue type tombstone
Summary:
In our testing cluster, we found large amount tombstone has been promoted to kValue type from kMerge after reaching the top level of compaction. Since we used to only collecting tombstone in merge operator, those tombstones can never be collected.

This PR addresses the issue by adding a GC step in compaction filter, which is only for kValue type records. Since those record already reached the top of compaction (no earlier data exists) we can safely remove them in compaction filter without worrying old data appears.

This PR also removes an old optimization in cassandra merge operator for single merge operands.  We need to do GC even on a single operand, so the optimation does not make sense anymore.
Closes https://github.com/facebook/rocksdb/pull/2855

Reviewed By: sagar0

Differential Revision: D5806445

Pulled By: wpc

fbshipit-source-id: 6eb25629d4ce917eb5e8b489f64a6aa78c7d270b
2017-09-18 16:27:12 -07:00
..
cassandra_compaction_filter.cc collecting kValue type tombstone 2017-09-18 16:27:12 -07:00
cassandra_compaction_filter.h collecting kValue type tombstone 2017-09-18 16:27:12 -07:00
cassandra_format_test.cc collecting kValue type tombstone 2017-09-18 16:27:12 -07:00
cassandra_functional_test.cc collecting kValue type tombstone 2017-09-18 16:27:12 -07:00
cassandra_row_merge_test.cc Cassandra compaction filter for purge expired columns and rows 2017-07-21 14:57:44 -07:00
cassandra_serialize_test.cc Cassandra compaction filter for purge expired columns and rows 2017-07-21 14:57:44 -07:00
format.cc garbage collect tombstones in merge operator 2017-08-31 10:11:54 -07:00
format.h garbage collect tombstones in merge operator 2017-08-31 10:11:54 -07:00
merge_operator.cc collecting kValue type tombstone 2017-09-18 16:27:12 -07:00
merge_operator.h garbage collect tombstones in merge operator 2017-08-31 10:11:54 -07:00
serialize.h Fix license headers in Cassandra related files 2017-07-28 13:56:56 -07:00
test_utils.cc garbage collect tombstones in merge operator 2017-08-31 10:11:54 -07:00
test_utils.h garbage collect tombstones in merge operator 2017-08-31 10:11:54 -07:00