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

ben-manes / caffeine / 1891
100%

Build:
DEFAULT BRANCH: master
Ran 30 Sep 2016 02:56AM UTC
Jobs 1
Files 66
Run time 4s
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

pending completion
1891

push

travis-ci

ben-manes
Ensure backpressure's task is executed last (fixes #124)

In most workloads writes are relatively rare and spaced apart. The write
buffer is a handoff between the writer and the async maintenance task
being triggered. That buffer may grow to a limit, at which point the
cache forces backpressure to cope with the high write rate. In this case
the writer blocks and tries to help out by performing the maintenace work.

In the above case the writer's task could not be scheduled, so when it
performs the clean-up it must also run its pending task. Previously this
was done prior to the buffers being drained, as order shouldn't matter. But
in a unit test a user could observe a premature eviction, because the last
addition was pushed to the front of the admission window.

This fix now keeps the writer's task at the tail, so the writer won't evict
the entry early. That won't have much of a real-world impact, but does play
nicer in unit tests.

5351 of 5673 relevant lines covered (94.32%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1891.1 (TERM=dumb) 30 Sep 2016 02:56AM UTC 0
94.32
Travis Job 1891.1
Source Files on build 1891
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1891
  • 48e8c895 on github
  • Prev Build on master (#1878)
  • Next Build on master (#1893)
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