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

ben-manes / caffeine / 2138
100%

Build:
DEFAULT BRANCH: master
Ran 04 Aug 2017 07:25PM UTC
Jobs 1
Files 67
Run time 5s
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
2138

push

travis-ci

ben-manes
Don't refresh automatically when waiting for a slow reload (fixed #175)

If the load time exceeded the refreshAfterWrite time then a new refresh
is triggered and the previous was ignored. This was due to how the write
timestamp is used, which was set to the current time to delay expiration
and refresh. When the refresh completes it CAS's to the new value only if
no other writes occurred (so as to not stomp explicit writes and reload a
stale read). The slow reload meant that only the last refresh would be
honored, which may not occur for a long time on a busy system.

This also removes a sync vs async difference that I never remembered why
it was in place. Async didn't have this problem due to the timestamp being
pushed out into the distant future. Since I didn't recall why these were
special cased I had kept them as is, hoping the previous me was smarter
than the current. Seems both were pretty dumb.

1 of 1 new or added line in 1 file covered. (100.0%)

5716 of 6070 relevant lines covered (94.17%)

0.94 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
100.0
caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java
Jobs
ID Job ID Ran Files Coverage
2 2138.2 (GROUP=tests) 04 Aug 2017 07:25PM UTC 0
94.17
Travis Job 2138.2
Source Files on build 2138
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2138
  • 26a98384 on github
  • Prev Build on master (#2137)
  • Next Build on master (#2140)
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