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

abronan / libkv / 45
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: update_travis
DEFAULT BRANCH: master
Ran 21 Aug 2017 10:19AM UTC
Jobs 1
Files 7
Run time 1s
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
45

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>

1636 of 1951 relevant lines covered (83.85%)

10.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45.1 21 Aug 2017 10:19AM UTC 0
83.85
Travis Job 45.1
Source Files on build 45
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #45
  • 79bd3fa9 on github
  • Next Build on align_etcd_lock (#46)
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