• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dgraph-io / badger / 1859 / 2
61%
main: 61%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-eb8e6b6abe
DEFAULT BRANCH: main
Ran 22 Feb 2019 09:27PM UTC
Files 30
Run time 9min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Feb 2019 09:19PM UTC coverage: 79.31% (+0.04%) from 79.273%
1859.2

push

travis-ci

web-flow
Introduce DropPrefix API in Badger (#715)

This API would allow Badger to completely get rid of the given prefix, P. It does this by:

1. Flushing memtables to disk (skipping over the keys with P).
2. Doing normal compaction from L0 -> L1 (skipping keys with P).
3. Doing same level compaction on all the rest of the levels, picking tables which might have the prefix and rewriting them to new tables (again, skipping keys with P).

Before starting, all the writes are paused, the usual bits which apply to `DropAll` apply here as well.

Note: This PR has a breaking change for the Logger interface. It adds a Debugf API.

Changes:

* Working drop prefix
* Make the drop prefix more robust. Add a new Debugf API for logging.
* Add parallel tests for DropPrefix
* Avoid a test failure due to removing p dir.
* Only test DropPrefix in DropPrefix test.
* Address Martin's comments

5010 of 6317 relevant lines covered (79.31%)

89552.22 hits per line

Source Files on job 1859.2
  • Tree
  • List 0
  • Changed 18
  • Source Changed 5
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1716
  • Travis Job 1859.2
  • 291295e1 on github
  • Prev Job for on master (#1856.4)
  • Next Job for on master (#1863.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc