forked from cockroachdb/pebble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: consider scheduling compaction when adding point tombstone compen…
…sation Previously, when the asynchronous table stats collector calculated a positive PointDeletionsBytesEstimate, it did not consider scheduling compactions unless it also calculated a positive RangeDeletionsBytesEstimate. If the database was otherwise quiet with few flushes and no in-progress compactions, this could delay the scheduling of a compaction until the next flush or ingest, despite levels have scores ≥ 1.0. This was illustrated with CockroachDB's point tombstone roachtest, with at times no running compactions despite levels having scores as high as 50 due to high volumes of data dropped by point tombstonees. Note, an issue still remains whereby L0 files that delete large amounts of data do not trigger compactions out of L0 on their own. This is a consequence of L0's different scoring heuristics which do not consider compensated size. See
- Loading branch information
Showing
4 changed files
with
97 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters