Skip to content

Commit

Permalink
feat(compaction): metric by frequence and #sst side, compaction doc (#…
Browse files Browse the repository at this point in the history
…829)

* feat(compaction): metric by sst_count together with bytes

* feat(compaction): add compact frequence stat for each level

* doc(compaction): add comments for compaction

* refactor(metrics): use counter rather than gauge for inc-only metrics
  • Loading branch information
soundOfDestiny authored and pangzhenzhou committed Mar 28, 2022
1 parent ba42416 commit 662566a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rust/storage/src/hummock/compactor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ impl Compactor {
// Among keys with same user key, only retain keys which satisfy `epoch` >= `watermark`,
// and the latest key which satisfies `epoch` < `watermark`
if epoch < watermark {
// Only retain latest key which satisfies epoch < watermark
skip_key = BytesMut::from(iter_key);
if matches!(iter.value(), HummockValue::Delete) && !has_user_key_overlap {
iter.next().await?;
Expand Down

0 comments on commit 662566a

Please sign in to comment.