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

cabol / nebulex / 7df667755b77898c9ea85e524e8b3ff1f0adf003
100%

Build:
DEFAULT BRANCH: master
Ran 15 Oct 2024 02:22PM UTC
Jobs 2
Files 45
Run time 1min
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

15 Oct 2024 02:21PM UTC coverage: 100.0%. Remained the same
7df667755b77898c9ea85e524e8b3ff1f0adf003

push

github

web-flow
Fix race condition in multilevel cache replication (#232)

* Fix race condition in multilevel cache replication

This commit fixes a race condition that is likely to happen when
one of the layers for a multilevel cache has to do some networking.

The issue arises from the calling `get` to see if a key exists, and
then calling `ttl` when replicating the key to other layers. This
means that the calls are happening in a non-atomic way, which in
turn means that by the time `ttl` gets called the key might have
expired already (the race condition).

The fix is detecting that the key has expired by checking for `nil`
in the `ttl` call result, and in this case not replicating the
cached entry to the other layers.

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

1087 of 1087 relevant lines covered (100.0%)

3223.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7df667755b77898c9ea85e524e8b3ff1f0adf003.1 15 Oct 2024 02:22PM UTC 45
100.0
GitHub Action Run
2 7df667755b77898c9ea85e524e8b3ff1f0adf003.2 15 Oct 2024 02:42PM UTC 45
100.0
GitHub Action Run
Source Files on build 7df667755b77898c9ea85e524e8b3ff1f0adf003
  • Tree
  • List 45
  • Changed 20
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7df66775 on github
  • Prev Build on master (#D47E5680...)
  • Next Build on master (#B20CD77F...)
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