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

abronan / libkv / 62 / 1
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: update_travis
DEFAULT BRANCH: master
Ran 28 Aug 2017 12:35AM UTC
Files 8
Run time 0s
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

28 Aug 2017 12:27AM UTC coverage: 84.082% (+0.2%) from 83.854%
62.1

push

travis-ci

abronan
Align etcd v2 lock behavior with other stores

Generally, locks in distributed kv stores leave the key as is
after a process locks or unlocks the key. The lock is just used
for mutual exclusion on the key to write. Until now, etcd v2
had no lock API and we had to circumvent that using our own lock
algorithm which was essentially using Compare and Swap with
watches on delete behavior to handle locking the key. This meant
that the locked key would disappear/reappear after each call to
Lock/Unlock while other stores would let the key live outside
of locking portions as expected.

To align the behavior of etcd v2 with other stores and let the key
live outside of locking workflow, we now use a side key for the mutex
with a suffix "_lock". Only that key is now subject to CAS/delete leaving
the original key intact outside of calls to Lock/Unlock.

Signed-off-by: Alexandre Beslic <abeslic@abronan.com>

1928 of 2293 relevant lines covered (84.08%)

9.86 hits per line

Source Files on job 62.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 62
  • Travis Job 62.1
  • 44f400fd on github
  • Prev Job for on align_etcd_lock (#46.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